Skip to content

Commit

Permalink
http_server: Correct HTTP/2 conditional clause
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Jul 8, 2024
1 parent 66288b3 commit 76e8e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http_server/flb_http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 76e8e96

Please sign in to comment.