MHD_queue_response(): fixed check for HTTP/1.0 mode

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-06-21 13:26:32 +03:00
parent 0560bb099c
commit 4cce973ea2
+2 -2
View File
@@ -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,