Fixes #5079 - :authority header for IPv6 address not having square brackets.

Updates after review.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2020-08-11 19:18:11 +02:00
parent 867621af89
commit 897e766f24
1 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ import org.eclipse.jetty.io.ClientConnectionFactory;
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;
@ -1163,7 +1164,7 @@ public class HttpClient extends ContainerLifeCycle
@Deprecated
protected String normalizeHost(String host)
{
return host;
return HostPort.normalizeHost(host);
}
public static int normalizePort(String scheme, int port)