mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge pull request #38591 from tomfrenken
* pr/38591: Use system properties when constructing Apache HttpClient Closes gh-38591
This commit is contained in:
commit
ae0ae8234f
@ -190,7 +190,8 @@ public final class ClientHttpRequestFactories {
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user