We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d2843 commit 7bf4e07Copy full SHA for 7bf4e07
api/src/main/java/org/asynchttpclient/util/SslUtils.java
@@ -69,7 +69,7 @@ public static SslUtils getInstance() {
69
public SSLContext getSSLContext(AsyncHttpClientConfig config) throws GeneralSecurityException {
70
SSLContext sslContext = config.getSSLContext();
71
72
- if (sslContext != null) {
+ if (sslContext == null) {
73
sslContext = config.isAcceptAnyCertificate() ? looseTrustManagerSSLContext : SSLContext.getDefault();
74
if (config.getSslSessionCacheSize() != null)
75
sslContext.getClientSessionContext().setSessionCacheSize(config.getSslSessionCacheSize());
0 commit comments