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");