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
Changes for lib/url.c: 1 added line, 1 removed line.
Original line number Original line Diff line number Diff line
@@ -3951,7 +3951,7 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
  if(result != CURLE_OK)
  if(result != CURLE_OK)
    return result;
    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
    /* This looks like an IPv6 address literal.  See if there is an address
       scope if there is no location header */
       scope if there is no location header */
    char *percent = strchr(conn->host.name, '%');
    char *percent = strchr(conn->host.name, '%');