mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
- Oskar Liljeblad <osk@hem.passagen.se> pointed out and corrected a problem
in the Location: following system that made curl following a location: to a different protocol to fail.
This commit is contained in:
parent
2974fb6840
commit
2be8c7a4e9
@ -533,6 +533,8 @@ UrgError curl_urlget(UrgTag tag, ...)
|
|||||||
|
|
||||||
infof(data, "Follows Location: to new URL: '%s'\n", data->url);
|
infof(data, "Follows Location: to new URL: '%s'\n", data->url);
|
||||||
|
|
||||||
|
data->port = 0; /* clear the port number so that we don't make any silly
|
||||||
|
assumptions for the new URL! */
|
||||||
/* clean up the sockets and SSL stuff from the previous "round" */
|
/* clean up the sockets and SSL stuff from the previous "round" */
|
||||||
urlfree(data, FALSE);
|
urlfree(data, FALSE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user