gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (ad61ffab -> 1c181be2)


From: gnunet
Subject: [libmicrohttpd] branch master updated (ad61ffab -> 1c181be2)
Date: Wed, 15 Jun 2022 14:34:43 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from ad61ffab configure: added parameter '--enable-compact-code'
     new 3526ff83 Remove double adding of MHD_HTTP_HEADER_CONNECTION response 
header
     new 1c181be2 Removed extra "Upgrade" token in Connection reply header in 
tests and examples

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 doc/examples/websocket.c                    | 3 ---
 src/examples/websocket_chatserver_example.c | 3 ---
 src/microhttpd_ws/test_websocket_browser.c  | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/doc/examples/websocket.c b/doc/examples/websocket.c
index 018d4c5a..ea29af62 100644
--- a/doc/examples/websocket.c
+++ b/doc/examples/websocket.c
@@ -382,9 +382,6 @@ access_handler (void *cls,
       /* upgrade the connection */
       response = MHD_create_response_for_upgrade (&upgrade_handler,
                                                   NULL);
-      MHD_add_response_header (response,
-                               MHD_HTTP_HEADER_CONNECTION,
-                               "Upgrade");
       MHD_add_response_header (response,
                                MHD_HTTP_HEADER_UPGRADE,
                                "websocket");
diff --git a/src/examples/websocket_chatserver_example.c 
b/src/examples/websocket_chatserver_example.c
index cc3005a2..cd5940db 100644
--- a/src/examples/websocket_chatserver_example.c
+++ b/src/examples/websocket_chatserver_example.c
@@ -2241,9 +2241,6 @@ access_handler (void *cls,
        * It requires the value of the Sec-WebSocket-Key header of the request.
        * See also: https://tools.ietf.org/html/rfc6455#section-4.2.2
        */
-      MHD_add_response_header (response,
-                               MHD_HTTP_HEADER_CONNECTION,
-                               "Upgrade");
       MHD_add_response_header (response,
                                MHD_HTTP_HEADER_UPGRADE,
                                "websocket");
diff --git a/src/microhttpd_ws/test_websocket_browser.c 
b/src/microhttpd_ws/test_websocket_browser.c
index 557ccdde..d7416a59 100644
--- a/src/microhttpd_ws/test_websocket_browser.c
+++ b/src/microhttpd_ws/test_websocket_browser.c
@@ -494,9 +494,6 @@ access_handler (void *cls,
       /* upgrade the connection */
       response = MHD_create_response_for_upgrade (&upgrade_handler,
                                                   NULL);
-      MHD_add_response_header (response,
-                               MHD_HTTP_HEADER_CONNECTION,
-                               "Upgrade");
       MHD_add_response_header (response,
                                MHD_HTTP_HEADER_UPGRADE,
                                "websocket");

-- 
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]