Removed space after comma in Accept headers
This commit is contained in:
@@ -195,7 +195,7 @@ static char *gettype(char *request, char **type) {
|
|||||||
char *ret;
|
char *ret;
|
||||||
{
|
{
|
||||||
char *next;
|
char *next;
|
||||||
next = strstr(request, ", ");
|
next = strchr(request, ',');
|
||||||
if (next == NULL) {
|
if (next == NULL) {
|
||||||
typeret = strdup(request);
|
typeret = strdup(request);
|
||||||
if (typeret == NULL) {
|
if (typeret == NULL) {
|
||||||
@@ -214,7 +214,7 @@ static char *gettype(char *request, char **type) {
|
|||||||
}
|
}
|
||||||
memcpy(typeret, request, biglen);
|
memcpy(typeret, request, biglen);
|
||||||
typeret[biglen] = '\0';
|
typeret[biglen] = '\0';
|
||||||
ret = next + 2;
|
ret = next + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user