Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
fix: no ssl hostname verify option
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagestedt committed Jun 9, 2020
1 parent 2838275 commit 4427125
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ public Client client() {
.build()
);
}
return new ApacheHttpClient(HttpClients.createDefault());
return new ApacheHttpClient(HttpClientBuilder
.create()
.setSSLHostnameVerifier(getSslHostnameVerifier())
.build());
}

private SSLContext getSslContext() {
Expand Down

0 comments on commit 4427125

Please sign in to comment.