File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
saas-modules/twilio-whatsapp/src/test/java/com/baeldung/twilio/whatsapp Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 33import javax .net .ssl .SSLContext ;
44
55import org .apache .http .HttpHost ;
6- import org .apache .http .client .config .RequestConfig ;
7- import org .apache .http .conn .ssl .NoopHostnameVerifier ;
86import org .apache .http .impl .client .HttpClientBuilder ;
97import org .apache .http .ssl .SSLContextBuilder ;
108
@@ -39,9 +37,7 @@ private HttpClient createHttpClient() {
3937
4038 HttpClientBuilder clientBuilder = HttpClientBuilder .create ()
4139 .setSSLContext (sslContext )
42- .setSSLHostnameVerifier (NoopHostnameVerifier .INSTANCE )
43- .setProxy (new HttpHost (host , port ))
44- .setDefaultRequestConfig (RequestConfig .DEFAULT );
40+ .setProxy (new HttpHost (host , port ));
4541
4642 return new NetworkHttpClient (clientBuilder );
4743 }
You can’t perform that action at this time.
0 commit comments