Skip to content

Commit

Permalink
Propagate Disable User Agent Config to Http Client (apache#12479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitsultana authored Feb 29, 2024
1 parent eb61827 commit 689d7d7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ private static CloseableHttpClient buildCloseableHttpClient(HttpClientConfig htt
if (httpClientConfig.getMaxConnPerRoute() > 0) {
httpClientBuilder.setMaxConnPerRoute(httpClientConfig.getMaxConnPerRoute());
}
if (httpClientConfig.isDisableDefaultUserAgent()) {
httpClientBuilder.disableDefaultUserAgent();
}
return httpClientBuilder.build();
}

Expand Down

0 comments on commit 689d7d7

Please sign in to comment.