diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-01-19 21:57:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-01-19 21:57:48 +0000 |
commit | 2be8c7a4e9875a126b7362398237c82b9860173f (patch) | |
tree | e6cf34ff78f86bfd918b2f4601a4168b3557b50f | |
parent | 2974fb6840c01ad371d7887742126d94e755d63c (diff) |
- 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.
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |