]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Ingo Wilken's patch to support multiple spaces after "Location:"
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 May 2001 11:29:47 +0000 (11:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 May 2001 11:29:47 +0000 (11:29 +0000)
lib/transfer.c

index df52014462024b8833fc3e495e27dbce6ae27d58..5823921484d328239a6e9e909d58ab665723f809 100644 (file)
@@ -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++;