From 2be8c7a4e9875a126b7362398237c82b9860173f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 19 Jan 2000 21:57:48 +0000 Subject: [PATCH] - Oskar Liljeblad pointed out and corrected a problem in the Location: following system that made curl following a location: to a different protocol to fail. --- lib/url.c | 2 ++ 1 file changed, 2 insertions(+) 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);