mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-04 00:09:01 +00:00
Use system properties when constructing Apache HttpClient
See gh-38591
This commit is contained in:
committed by
Moritz Halbritter
parent
63df0c1441
commit
43bc104c4e
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user