Skip to content

Commit

Permalink
[UNDERTOW-2135] Partial revert of hack from commit id: 55445de
Browse files Browse the repository at this point in the history
  • Loading branch information
ropalka authored and fl4via committed Aug 11, 2022
1 parent 7d3a045 commit 1d95f77
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ public Http2UpgradeHandler(HttpHandler next, String... upgradeStrings) {
public void handleRequest(HttpServerExchange exchange) throws Exception {
final String upgrade = exchange.getRequestHeaders().getFirst(Headers.UPGRADE);
final String settings = exchange.getRequestHeaders().getFirst("HTTP2-Settings");
if(settings != null && upgrade != null
&& upgradeStrings.contains(upgrade)) {
if(HttpContinue.requiresContinueResponse(exchange) && false) {
if(settings != null && upgrade != null && upgradeStrings.contains(upgrade)) {
if(HttpContinue.requiresContinueResponse(exchange)) {
HttpContinue.sendContinueResponse(exchange, new IoCallback() {
@Override
public void onComplete(HttpServerExchange exchange, Sender sender) {
Expand Down

0 comments on commit 1d95f77

Please sign in to comment.