Skip to content

Commit 884489e

Browse files
Apply system properties to RestTemplate HttpClient
Fixes gh-35815
1 parent 6effd60 commit 884489e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private static HttpClient createHttpClient(Duration readTimeout) {
153153
PoolingHttpClientConnectionManager connectionManager = PoolingHttpClientConnectionManagerBuilder.create()
154154
.setDefaultSocketConfig(socketConfig)
155155
.build();
156-
return HttpClientBuilder.create().setConnectionManager(connectionManager).build();
156+
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
157157
}
158158

159159
}

0 commit comments

Comments
 (0)