Skip to content

Commit

Permalink
Merge branch '3.1.x'
Browse files Browse the repository at this point in the history
Closes gh-36124
  • Loading branch information
scottfrederick committed Jun 29, 2023
2 parents abaade2 + 0a51c46 commit c22cbb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HttpComponentsClientHttpConnectorFactory

@Override
public HttpComponentsClientHttpConnector createClientHttpConnector(SslBundle sslBundle) {
HttpAsyncClientBuilder builder = HttpAsyncClients.custom();
HttpAsyncClientBuilder builder = HttpAsyncClients.custom().useSystemProperties();
if (sslBundle != null) {
SslOptions options = sslBundle.getOptions();
SSLContext sslContext = sslBundle.createSslContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private static HttpClient createHttpClient(Duration readTimeout, SslBundle sslBu
connectionManagerBuilder.setSSLSocketFactory(socketFactory);
}
PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.build();
return HttpClientBuilder.create().setConnectionManager(connectionManager).build();
return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build();
}

}
Expand Down

0 comments on commit c22cbb0

Please sign in to comment.