Skip to content

Commit

Permalink
respect system defaults (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlukas authored Sep 24, 2024
1 parent 77caa50 commit 194d4b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void resetToken() {
}

private TokenResponse retrieveToken() {
try (CloseableHttpClient client = HttpClients.createDefault()) {
try (CloseableHttpClient client = HttpClients.createSystem()) {
HttpPost request = buildRequest();
return client.execute(
request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public SimpleAuthentication(SimpleCredential simpleCredential) {
}

private SimpleAuthToken retrieveToken() {
try (CloseableHttpClient client = HttpClients.createDefault()) {
try (CloseableHttpClient client = HttpClients.createSystem()) {
HttpPost request = buildRequest(simpleCredential);
SimpleAuthToken simpleAuthToken =
client.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public CamundaOperateClientConfiguration operateClientConfiguration(
@Bean("operateHttpClient")
@ConditionalOnMissingBean(name = "operateHttpClient")
public CloseableHttpClient operateHttpClient() {
return HttpClients.createDefault();
return HttpClients.createSystem();
}

@Bean
Expand Down

0 comments on commit 194d4b0

Please sign in to comment.