HTTPCLIENT-1934: H2 TLS strategy passes wrong hostname to the hostname verifier

This commit is contained in:
Oleg Kalnichevski 2018-07-17 11:27:20 +02:00
parent b97c7a08b2
commit 50802106f6
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class H2TlsStrategy implements TlsStrategy {
@Override
public TlsDetails verify(final NamedEndpoint endpoint, final SSLEngine sslEngine) throws SSLException {
verifySession(endpoint.getHostName(), sslEngine.getSession());
verifySession(host.getHostName(), sslEngine.getSession());
return createTlsDetails(sslEngine);
}