Skip to content

Commit 1d95f77

Browse files
ropalkafl4via
authored andcommitted
[UNDERTOW-2135] Partial revert of hack from commit id: 55445de
1 parent 7d3a045 commit 1d95f77

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/io/undertow/server/protocol/http2/Http2UpgradeHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ public Http2UpgradeHandler(HttpHandler next, String... upgradeStrings) {
7474
public void handleRequest(HttpServerExchange exchange) throws Exception {
7575
final String upgrade = exchange.getRequestHeaders().getFirst(Headers.UPGRADE);
7676
final String settings = exchange.getRequestHeaders().getFirst("HTTP2-Settings");
77-
if(settings != null && upgrade != null
78-
&& upgradeStrings.contains(upgrade)) {
79-
if(HttpContinue.requiresContinueResponse(exchange) && false) {
77+
if(settings != null && upgrade != null && upgradeStrings.contains(upgrade)) {
78+
if(HttpContinue.requiresContinueResponse(exchange)) {
8079
HttpContinue.sendContinueResponse(exchange, new IoCallback() {
8180
@Override
8281
public void onComplete(HttpServerExchange exchange, Sender sender) {

0 commit comments

Comments
 (0)