mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Ingo Wilken's patch to support multiple spaces after "Location:"
This commit is contained in:
parent
7be8993f94
commit
dc6da007ad
@ -517,8 +517,14 @@ Transfer(struct connectdata *c_conn)
|
||||
char *start=p;
|
||||
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 */
|
||||
|
||||
/* scan through the string to find the end */
|
||||
while(*ptr && !isspace((int)*ptr))
|
||||
ptr++;
|
||||
|
Loading…
Reference in New Issue
Block a user