ipv6: strip off zone identifiers in redirects too
authorDaniel Stenberg <daniel@haxx.se>
Mon, 31 Mar 2014 07:35:32 +0000 (09:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 31 Mar 2014 07:35:32 +0000 (09:35 +0200)
Follow up to 9317eced984 makes test 1056 work again.

lib/url.c

index 40751cc..ebd38cc 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3951,7 +3951,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
   if(result != CURLE_OK)
     return result;
 
-  if(conn->host.name[0] == '[' && !data->state.this_is_a_follow) {
+  if(conn->host.name[0] == '[') {
     /* This looks like an IPv6 address literal.  See if there is an address
        scope if there is no location header */
     char *percent = strchr(conn->host.name, '%');