Commit 13682d1a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ipv6: strip off zone identifiers in redirects too

Follow up to 9317eced makes test 1056 work again.
parent ed4972ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, '%');