Skip to content

Commit 43bc104

Browse files
tomfrenkenmhalbritter
authored andcommitted
Use system properties when constructing Apache HttpClient
See gh-38591
1 parent 63df0c1 commit 43bc104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/ClientHttpRequestFactories.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ private static HttpClient createHttpClient(Duration readTimeout, SslBundle sslBu
190190
options.getEnabledProtocols(), options.getCiphers(), new DefaultHostnameVerifier());
191191
connectionManagerBuilder.setSSLSocketFactory(socketFactory);
192192
}
193-
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.build();
193+
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.useSystemProperties()
194+
.build();
194195
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
195196
}
196197

0 commit comments

Comments
 (0)