File tree Expand file tree Collapse file tree
ayza/src/main/java/nl/altindag/ssl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ SSLFactory sslFactory = SSLFactory.builder()
345345 .build();
346346
347347HttpsURLConnection.setDefaultHostnameVerifier(sslFactory.getHostnameVerifier());
348+ System.setProperty("jdk.internal.httpclient.disableHostnameVerification", Boolean.TRUE.toString());
348349```
349350
350351##### Loading JDK and OS trusted certificates
Original file line number Diff line number Diff line change @@ -779,7 +779,6 @@ public <T extends HostnameVerifier> Builder withHostnameVerifier(T hostnameVerif
779779
780780 public Builder withUnsafeHostnameVerifier () {
781781 this .hostnameVerifier = HostnameVerifierUtils .createUnsafe ();
782- System .setProperty ("jdk.internal.httpclient.disableHostnameVerification" , Boolean .TRUE .toString ());
783782 return this ;
784783 }
785784
You can’t perform that action at this time.
0 commit comments