Skip to content

Commit

Permalink
Fixes #5079 - :authority header for IPv6 address not having square br…
Browse files Browse the repository at this point in the history
…ackets.

Reverted code changes to HttpClient.normalizeHost().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Aug 11, 2020
1 parent 897e766 commit 2e73f80
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -64,7 +64,6 @@
import org.eclipse.jetty.io.MappedByteBufferPool;
import org.eclipse.jetty.io.ssl.SslClientConnectionFactory;
import org.eclipse.jetty.util.Fields;
import org.eclipse.jetty.util.HostPort;
import org.eclipse.jetty.util.Jetty;
import org.eclipse.jetty.util.ProcessorUtils;
import org.eclipse.jetty.util.Promise;
Expand Down Expand Up @@ -1164,7 +1163,7 @@ protected HttpField getAcceptEncodingField()
@Deprecated
protected String normalizeHost(String host)
{
return HostPort.normalizeHost(host);
return host;
}

public static int normalizePort(String scheme, int port)
Expand Down

0 comments on commit 2e73f80

Please sign in to comment.