ipv6: strip off zone identifiers in redirects too

Follow up to 9317eced98 makes test 1056 work again.
This commit is contained in:
Daniel Stenberg 2014-03-31 09:35:32 +02:00
parent ed4972ffdb
commit 13682d1a24

View File

@ -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, '%');