Skip to content

Commit ae0ae82

Browse files
committed
Merge pull request #38591 from tomfrenken
* pr/38591: Use system properties when constructing Apache HttpClient Closes gh-38591
2 parents 63df0c1 + 43bc104 commit ae0ae82

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)