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 7e524d9 commit ff68bd0Copy full SHA for ff68bd0
src/main/java/com/ning/http/util/SslUtils.java
@@ -66,7 +66,7 @@ public static SslUtils getInstance() {
66
public SSLContext getSSLContext(AsyncHttpClientConfig config) throws GeneralSecurityException {
67
SSLContext sslContext = config.getSSLContext();
68
69
- if (sslContext != null) {
+ if (sslContext == null) {
70
sslContext = config.isAcceptAnyCertificate() ? looseTrustManagerSSLContext : SSLContext.getDefault();
71
if (config.getSslSessionCacheSize() != null)
72
sslContext.getClientSessionContext().setSessionCacheSize(config.getSslSessionCacheSize());
0 commit comments