Apply system properties to RestTemplate HttpClient

Fixes gh-35815
pull/37018/head
Scott Frederick 1 year ago
parent 6effd6061c
commit 884489e73a

@ -153,7 +153,7 @@ public final class ClientHttpRequestFactories {
PoolingHttpClientConnectionManager connectionManager = PoolingHttpClientConnectionManagerBuilder.create()
.setDefaultSocketConfig(socketConfig)
.build();
return HttpClientBuilder.create().setConnectionManager(connectionManager).build();
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
}
}

Loading…
Cancel
Save