diff --git a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java index 3e29e2be8a..41d4d09c83 100644 --- a/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java +++ b/core-client/src/main/java/org/glassfish/jersey/client/internal/HttpUrlConnector.java @@ -312,11 +312,7 @@ protected void secureConnection(final JerseyClient client, final HttpURLConnecti if (verifier != null) { suc.setHostnameVerifier(verifier); } - - if (DEFAULT_SSL_SOCKET_FACTORY.get() == suc.getSSLSocketFactory()) { - // indicates that the custom socket factory was not set - suc.setSSLSocketFactory(sslSocketFactory.get()); - } + suc.setSSLSocketFactory(sslSocketFactory.get()); } }