Commit dc6da007 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Ingo Wilken's patch to support multiple spaces after "Location:"

parent 7be8993f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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++;