HTTPCLIENT-1934: H2 TLS strategy passes wrong hostname to the hostname verifier
This commit is contained in:
parent
b97c7a08b2
commit
50802106f6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue