Ingo Wilken's patch to support multiple spaces after "Location:"
This commit is contained in:
@@ -517,8 +517,14 @@ Transfer(struct connectdata *c_conn)
|
|||||||
char *start=p;
|
char *start=p;
|
||||||
char backup;
|
char backup;
|
||||||
|
|
||||||
start += 10; /* pass "Location: " */
|
start += 9; /* pass "Location:" */
|
||||||
|
|
||||||
|
/* Skip spaces and tabs. We do this to support multiple
|
||||||
|
white spaces after the "Location:" keyword. */
|
||||||
|
while(*start && isspace((int)*start ))
|
||||||
|
start++;
|
||||||
ptr = start; /* start scanning here */
|
ptr = start; /* start scanning here */
|
||||||
|
|
||||||
/* scan through the string to find the end */
|
/* scan through the string to find the end */
|
||||||
while(*ptr && !isspace((int)*ptr))
|
while(*ptr && !isspace((int)*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|||||||
Reference in New Issue
Block a user