You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/01/21 08:05:39 UTC
[httpcomponents-client] branch master updated: HTTPCLIENT-2198, Fixed AbstractClientTlsStrategy to respect HttpVersionPolicy
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new d4c0e96 HTTPCLIENT-2198, Fixed AbstractClientTlsStrategy to respect HttpVersionPolicy
d4c0e96 is described below
commit d4c0e961ab69a8e170534b290bfd9276dcdf0078
Author: Andrei Vasilev <59...@users.noreply.github.com>
AuthorDate: Thu Jan 20 14:29:38 2022 -0800
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.
---
.../java/org/apache/hc/client5/http/ssl/AbstractClientTlsStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 21c72c3..8818afb 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);