aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c8
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++;