From 4cce973ea2ff3e4466ded5f66ecce2cfefec8b40 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 21 Jun 2021 13:26:32 +0300 Subject: [PATCH] MHD_queue_response(): fixed check for HTTP/1.0 mode --- src/microhttpd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index e274ace5..9a8209ed 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -4318,8 +4318,8 @@ MHD_queue_response (struct MHD_Connection *connection, #endif return MHD_NO; } - if (0 != response->flags & (MHD_RF_HTTP_VERSION_1_0_ONLY - | MHD_RF_HTTP_VERSION_1_0_RESPONSE)) + if (0 != (response->flags & (MHD_RF_HTTP_VERSION_1_0_ONLY + | MHD_RF_HTTP_VERSION_1_0_RESPONSE))) { #ifdef HAVE_MESSAGES MHD_DLOG (daemon,