commit 1c181be2ff0c54130de18ec92b3425882aa0eb7a
parent 3526ff83027997ccf360b4729dbfef9aa97f236d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 15 Jun 2022 15:34:34 +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.
Diffstat:
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/doc/examples/websocket.c b/doc/examples/websocket.c
@@ -383,9 +383,6 @@ access_handler (void *cls,
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");
MHD_add_response_header (response,
diff --git a/src/microhttpd_ws/test_websocket_browser.c b/src/microhttpd_ws/test_websocket_browser.c
@@ -495,9 +495,6 @@ access_handler (void *cls,
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");
MHD_add_response_header (response,