]> granicus.if.org Git - curl/commitdiff
- Oskar Liljeblad <osk@hem.passagen.se> pointed out and corrected a problem
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jan 2000 21:57:48 +0000 (21:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jan 2000 21:57:48 +0000 (21:57 +0000)
   in the Location: following system that made curl following a location: to a
   different protocol to fail.

lib/url.c

index 2abdb6343e92051dbfe803a54bb29efda2e4b21c..34fc51f4d64a527f6195b86530752b4102db6e2b 100644 (file)
--- 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);