aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-01-19 21:57:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-01-19 21:57:48 +0000
commit2be8c7a4e9875a126b7362398237c82b9860173f (patch)
treee6cf34ff78f86bfd918b2f4601a4168b3557b50f /lib
parent2974fb6840c01ad371d7887742126d94e755d63c (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.
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 2abdb6343..34fc51f4d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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);