From: Daniel Stenberg Date: Mon, 31 Mar 2014 07:35:32 +0000 (+0200) Subject: ipv6: strip off zone identifiers in redirects too X-Git-Tag: curl-7_37_0~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13682d1a24bba5386530805d8fbcf987b19c3552;p=thirdparty%2Fcurl.git ipv6: strip off zone identifiers in redirects too Follow up to 9317eced984 makes test 1056 work again. --- diff --git a/lib/url.c b/lib/url.c index 40751cc568..ebd38cceef 100644 --- 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, '%');