- 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:
Daniel Stenberg 2000-01-19 21:57:48 +00:00
parent 2974fb6840
commit 2be8c7a4e9

View File

@ -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);