[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/02: Removed extra "Upgrade" token in Connection reply
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/02: Removed extra "Upgrade" token in Connection reply header in tests and examples |
Date: |
Wed, 15 Jun 2022 14:34:45 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 1c181be2ff0c54130de18ec92b3425882aa0eb7a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jun 15 15:34:34 2022 +0300
Removed extra "Upgrade" token in Connection reply header in tests and
examples
MHD automatically adds "Upgrade" header, no need to add it for the
second time.
---
doc/examples/websocket.c | 3 ---
src/microhttpd_ws/test_websocket_browser.c | 3 ---
2 files changed, 6 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/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.