gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 02/02: Do not add any "Connection" headers


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/02: Do not add any "Connection" headers for "upgrade" connections.
Date: Thu, 11 May 2017 13:29:49 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 787bfd1859db22c58271f287dfcb505c0052edd3
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu May 11 14:25:25 2017 +0300

    Do not add any "Connection" headers for "upgrade" connections.
---
 ChangeLog                   | 3 +++
 src/microhttpd/connection.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 3bbaaacb..4e87285a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Thu May 11 14:24:00 MSK 2017
+       Do not add any "Connection" headers for "upgrade" connections. -EG
+
 Wed May 10 23:09:00 MSK 2017
        Resume resuming connection before other processing in external polling 
        mode. -EG
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index a987a97b..803eccba 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1205,6 +1205,9 @@ build_header_response (struct MHD_Connection *connection)
              (connection->read_closed) ||
              (MHD_CONN_MUST_CLOSE == connection->keepalive)) &&
            (! response_has_close) &&
+#ifdef UPGRADE_SUPPORT
+           (NULL == connection->response->upgrade_handler) &&
+#endif /* UPGRADE_SUPPORT */
            (0 == (connection->response->flags & MHD_RF_HTTP_VERSION_1_0_ONLY) 
) )
         must_add_close = MHD_YES;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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