From 3daaae30c829e762bcaa0682d24aa5642238361c Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Mon, 16 Dec 2024 12:31:30 -0500 Subject: [PATCH] Simplify the upgrade flow checks Signed-off-by: Andriy Redko --- .../java/reactor/netty/http/server/HttpServerOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerOperations.java b/reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerOperations.java index 8dbce85f5..a420862ef 100644 --- a/reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerOperations.java +++ b/reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerOperations.java @@ -820,7 +820,7 @@ else if (msg instanceof HttpRequest) { channel().config().setAutoRead(true); onInboundComplete(); } - else if (!isHttp2() && request.headers().contains(HttpHeaderNames.UPGRADE)) { + else if (request.headers().contains(HttpHeaderNames.UPGRADE)) { // HTTP/1.1 TLS Upgrade (RFC-2817) requests (GET/HEAD/OPTIONS) with empty / non-empty payload stopReadTimeout(); //force auto read to enable more accurate close selection now inbound is done