diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/AbstractClientTlsStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/AbstractClientTlsStrategy.java index 21c72c34a..8818afb91 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/AbstractClientTlsStrategy.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/AbstractClientTlsStrategy.java @@ -135,7 +135,7 @@ abstract class AbstractClientTlsStrategy implements TlsStrategy { H2TlsSupport.setEnableRetransmissions(sslParameters, false); } - applyParameters(sslEngine, sslParameters, H2TlsSupport.selectApplicationProtocols(attachment)); + applyParameters(sslEngine, sslParameters, H2TlsSupport.selectApplicationProtocols(versionPolicy)); initializeEngine(sslEngine);