HTTPCLIENT-2198, Fixed AbstractClientTlsStrategy to respect HttpVersionPolicy

Updated AbstractClientTlsStrategy to pass only the HttpVersionPolicy set by TlsConfig  instead of the entire TlsConfig to H2TlsSupport.selectApplicationProtocols() method.
This commit is contained in:
Andrei Vasilev 2022-01-20 14:29:38 -08:00 committed by Oleg Kalnichevski
parent 3ee994b25c
commit d4c0e961ab
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ abstract class AbstractClientTlsStrategy implements TlsStrategy {
H2TlsSupport.setEnableRetransmissions(sslParameters, false); H2TlsSupport.setEnableRetransmissions(sslParameters, false);
} }
applyParameters(sslEngine, sslParameters, H2TlsSupport.selectApplicationProtocols(attachment)); applyParameters(sslEngine, sslParameters, H2TlsSupport.selectApplicationProtocols(versionPolicy));
initializeEngine(sslEngine); initializeEngine(sslEngine);