Skip to content

Commit

Permalink
Use system properties when constructing Apache HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfrenken authored and mhalbritter committed Nov 29, 2023
1 parent 63df0c1 commit 43bc104
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private static HttpClient createHttpClient(Duration readTimeout, SslBundle sslBu
options.getEnabledProtocols(), options.getCiphers(), new DefaultHostnameVerifier());
connectionManagerBuilder.setSSLSocketFactory(socketFactory);
}
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.build();
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.useSystemProperties()
.build();
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
}

Expand Down

0 comments on commit 43bc104

Please sign in to comment.