Skip to content

Commit

Permalink
Merge pull request #6194 from Skanetrafiken/disable-http-client-proto…
Browse files Browse the repository at this point in the history
…col-upgrade

Disable protocol upgrades for the HTTP client by default.
  • Loading branch information
jtorin authored Oct 28, 2024
2 parents beba7f2 + 2e0a034 commit a574bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ private static RequestConfig requestConfig(Duration timeout) {
.custom()
.setResponseTimeout(Timeout.of(timeout))
.setConnectionRequestTimeout(Timeout.of(timeout))
.setProtocolUpgradeEnabled(false)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ private static RequestConfig requestConfig(Duration timeout) {
.custom()
.setResponseTimeout(Timeout.of(timeout))
.setConnectionRequestTimeout(Timeout.of(timeout))
.setProtocolUpgradeEnabled(false)
.build();
}
}

0 comments on commit a574bc3

Please sign in to comment.