Skip to content

Commit c22cbb0

Browse files
Merge branch '3.1.x'
Closes gh-36124
2 parents abaade2 + 0a51c46 commit c22cbb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/HttpComponentsClientHttpConnectorFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HttpComponentsClientHttpConnectorFactory
3939

4040
@Override
4141
public HttpComponentsClientHttpConnector createClientHttpConnector(SslBundle sslBundle) {
42-
HttpAsyncClientBuilder builder = HttpAsyncClients.custom();
42+
HttpAsyncClientBuilder builder = HttpAsyncClients.custom().useSystemProperties();
4343
if (sslBundle != null) {
4444
SslOptions options = sslBundle.getOptions();
4545
SSLContext sslContext = sslBundle.createSslContext();

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static HttpClient createHttpClient(Duration readTimeout, SslBundle sslBu
175175
connectionManagerBuilder.setSSLSocketFactory(socketFactory);
176176
}
177177
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.build();
178-
return HttpClientBuilder.create().setConnectionManager(connectionManager).build();
178+
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
179179
}
180180

181181
}

0 commit comments

Comments
 (0)