Skip to content

Commit

Permalink
FDP-94: Set host name verifier on connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperkamerling committed Nov 17, 2023
1 parent 86e48bb commit e1036d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public HttpsURLConnection createConnection(
return null;
}
// Create connection.
HttpsURLConnection.setDefaultHostnameVerifier(hostnameVerifierFactory.getHostnameVerifier());
final HttpsURLConnection connection = (HttpsURLConnection) new URL(uri).openConnection();
connection.setHostnameVerifier(hostnameVerifierFactory.getHostnameVerifier());
connection.setSSLSocketFactory(sslContext.getSocketFactory());
connection.setDoInput(true);
connection.setDoOutput(true);
Expand Down

0 comments on commit e1036d2

Please sign in to comment.