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.
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-06-15 15:34:34 +03:00
parent 3526ff8302
commit 1c181be2ff
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -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");