From 76e8e967ded7724ef2d230e640dd3219f35b025a Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Mon, 8 Jul 2024 14:17:35 +0900 Subject: [PATCH] http_server: Correct HTTP/2 conditional clause Signed-off-by: Hiroshi Hatake --- src/http_server/flb_http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_server/flb_http_server.c b/src/http_server/flb_http_server.c index 1619848fe22..47400e4db74 100644 --- a/src/http_server/flb_http_server.c +++ b/src/http_server/flb_http_server.c @@ -292,7 +292,7 @@ static int flb_http_server_should_connection_be_closed( * HTTP/2 keep-alive is "mandatory" */ - if (request->protocol_version < HTTP_PROTOCOL_VERSION_20) { + if (request->protocol_version >= HTTP_PROTOCOL_VERSION_20) { /* HTTP/2 always keeps the connection open */ return FLB_FALSE; }