From ec68c44857603c9f5bb77a44d8163d837ac5a55a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 11 Aug 2017 16:46:59 +0200 Subject: [PATCH] afb-websocket: update websocket protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit After integration of UPGRADE in libmicrohttpd, the header "Connection: Upgrade" has to be removed because it is now sent 2 times. This caused Webkit to fail to connect its websocket. Bug-AGL: SPEC-821 Change-Id: Ib9744208cf7175f0c56e513b18b53ab0a9b60b9f Signed-off-by: José Bollo --- src/afb-websock.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/afb-websock.c b/src/afb-websock.c index 277c9df5..799b2bd0 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -215,7 +215,6 @@ static int check_websocket_upgrade(struct MHD_Connection *con, const struct prot make_accept_value(key, acceptval); MHD_add_response_header(response, sec_websocket_accept_s, acceptval); MHD_add_response_header(response, sec_websocket_protocol_s, proto->name); - MHD_add_response_header(response, MHD_HTTP_HEADER_CONNECTION, MHD_HTTP_HEADER_UPGRADE); MHD_add_response_header(response, MHD_HTTP_HEADER_UPGRADE, websocket_s); MHD_queue_response(con, MHD_HTTP_SWITCHING_PROTOCOLS, response); MHD_destroy_response(response); -- 2.16.6