[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTI
From: |
gnunet |
Subject: |
[libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header |
Date: |
Sun, 28 May 2023 17:51:22 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 00085491b9c8562640c9dd3e8e395980a3fa944a
Author: Alexander Irion <alexander_irion@mentor.com>
AuthorDate: Wed Jun 15 12:34:49 2022 +0200
Remove double adding of MHD_HTTP_HEADER_CONNECTION response header
MHD_create_response_for_upgrade() already adds the
MHD_HTTP_HEADER_CONNECTION response header, so
the additional MHD_add_response_header is wrong.
In our application it caused, that on a Apple iPad, the websocket was
immediately closed by the
browser(Safari, Chrome, Opera) after the protocol upgrade. Browsers on
Linux, Android did not had this issue.
Signed-off-by: Alexander Irion <alexander_irion@mentor.com>
---
src/examples/websocket_chatserver_example.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/examples/websocket_chatserver_example.c
b/src/examples/websocket_chatserver_example.c
index 0c39d5f0..54e62fde 100644
--- a/src/examples/websocket_chatserver_example.c
+++ b/src/examples/websocket_chatserver_example.c
@@ -2242,9 +2242,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");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 38/156: test_upgrade{,_large}: fixed HTTP/1.1 compatibility, (continued)
- [libmicrohttpd] 38/156: test_upgrade{,_large}: fixed HTTP/1.1 compatibility, gnunet, 2023/05/28
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, gnunet, 2023/05/28
- [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains, gnunet, 2023/05/28
- [libmicrohttpd] 33/156: mhd_str: fixed compiler warning for compact code, gnunet, 2023/05/28
- [libmicrohttpd] 26/156: Fixed very rare data races when closing upgraded connection, gnunet, 2023/05/28
- [libmicrohttpd] 30/156: configure: fixed underquoting, typos, wording, gnunet, 2023/05/28
- [libmicrohttpd] 32/156: configure: fixed typos in messages, gnunet, 2023/05/28
- [libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnutls_priority_init(), gnunet, 2023/05/28
- [libmicrohttpd] 41/156: configure: used better detection of some functions when cross-compiling, gnunet, 2023/05/28
- [libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header,
gnunet <=
- [libmicrohttpd] 31/156: connection: skip no-op calling of body generation functions when response body is not used, gnunet, 2023/05/28
- [libmicrohttpd] 43/156: -typo, gnunet, 2023/05/28
- [libmicrohttpd] 21/156: internal.h: fixed incorrect use of enum value as preprocessor value, gnunet, 2023/05/28
- [libmicrohttpd] 40/156: Added new M4 helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 39/156: test_get_iovec: fixed missing include headers, gnunet, 2023/05/28
- [libmicrohttpd] 45/156: MHD_get_version_bin(): added new function, gnunet, 2023/05/28
- [libmicrohttpd] 44/156: add assertion to guard against bad behavior described in #7196, also document that after suspending one must return MHD_YES, gnunet, 2023/05/28
- [libmicrohttpd] 49/156: mhd_check_func.m4: fixed macro, gnunet, 2023/05/28
- [libmicrohttpd] 46/156: mhd_norm_expd.m4: added autoconf helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 55/156: mhd_check_link_run.m4: fixed typo in comment, gnunet, 2023/05/28