mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
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:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user