diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-05-10 11:29:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-05-10 11:29:47 +0000 |
commit | dc6da007ad1d1f5c2ae6caa111400f6f652aba6f (patch) | |
tree | 3fe4c1f0add565477c79fed8e55b13e9801f1b43 /lib | |
parent | 7be8993f9429db4cd3633cce941d066922c25189 (diff) |
Ingo Wilken's patch to support multiple spaces after "Location:"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index df5201446..582392148 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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++; |