From dc6da007ad1d1f5c2ae6caa111400f6f652aba6f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 May 2001 11:29:47 +0000 Subject: Ingo Wilken's patch to support multiple spaces after "Location:" --- lib/transfer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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++; -- cgit v1.2.3