mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08: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);
|
||||
|
||||
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" */
|
||||
urlfree(data, FALSE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user