gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: Simple fix for 6f48db46b16579198f


From: gnunet
Subject: [libmicrohttpd] branch master updated: Simple fix for 6f48db46b16579198fd48862fb8ec4829216ba2d
Date: Fri, 20 Aug 2021 08:51:34 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new a0edd366 Simple fix for 6f48db46b16579198fd48862fb8ec4829216ba2d
a0edd366 is described below

commit a0edd366288c8fa82736a754df099c20e79e4f88
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Aug 19 21:18:51 2021 +0300

    Simple fix for 6f48db46b16579198fd48862fb8ec4829216ba2d
---
 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 9cdc06f1..39cf4cb6 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1941,7 +1941,7 @@ build_header_response (struct MHD_Connection *connection)
     else if (MHD_CONN_USE_KEEPALIVE == c->keepalive)
     {
       if ((MHD_HTTP_VER_1_0 == c->http_ver) ||
-          (0 != (r->flags | MHD_RF_SEND_KEEP_ALIVE_HEADER)))
+          (0 != (r->flags & MHD_RF_SEND_KEEP_ALIVE_HEADER)))
       {
         if (! buffer_append_s (buf, &pos, buf_size,
                                MHD_HTTP_HEADER_CONNECTION ": Keep-Alive\r\n"))
@@ -1956,7 +1956,7 @@ build_header_response (struct MHD_Connection *connection)
                           ! c->rp_props.chunked,
                           (MHD_CONN_MUST_CLOSE == c->keepalive),
                           ((MHD_HTTP_VER_1_0 == c->http_ver) ||
-                           (0 != (r->flags | MHD_RF_SEND_KEEP_ALIVE_HEADER))) 
&&
+                           (0 != (r->flags & MHD_RF_SEND_KEEP_ALIVE_HEADER))) 
&&
                           (MHD_CONN_USE_KEEPALIVE == c->keepalive)))
     return MHD_NO;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]