if we found no string on the Location: line, don't try to follow it
This commit is contained in:
parent
ee656415c4
commit
45bd009bb1
@ -660,9 +660,11 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||||||
while(*ptr && !isspace((int)*ptr))
|
while(*ptr && !isspace((int)*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
backup = *ptr; /* store the ending letter */
|
backup = *ptr; /* store the ending letter */
|
||||||
*ptr = '\0'; /* zero terminate */
|
if(ptr != start) {
|
||||||
conn->newurl = strdup(start); /* clone string */
|
*ptr = '\0'; /* zero terminate */
|
||||||
*ptr = backup; /* restore ending letter */
|
conn->newurl = strdup(start); /* clone string */
|
||||||
|
*ptr = backup; /* restore ending letter */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user