X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-websock.c;h=799b2bd0ba53945a52436b66d4d5ea482bf72db1;hb=197626868aaf84e9a68e8e7e5397ef1c6883a0f1;hp=765624d9c0ae9680894c9903dcc3a513f30938c8;hpb=7e674cc7202abfae0dd07df8805a0dea743bf4be;p=src%2Fapp-framework-binder.git diff --git a/src/afb-websock.c b/src/afb-websock.c index 765624d9..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); @@ -224,7 +223,7 @@ static int check_websocket_upgrade(struct MHD_Connection *con, const struct prot } static const struct protodef protodefs[] = { - { "x-afb-ws-json1", afb_ws_json1_create }, + { "x-afb-ws-json1", (void*)afb_ws_json1_create }, { NULL, NULL } };