Commit 2be8c7a4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

- 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.
parent 2974fb68
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);