1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ws: http: most of the world can't handle close,upgrade on connection

It's legal and does something important, if the upgrade fails and stays in http,
it describes how the connection should be handled after sending the error code.

But most ws servers can't cope with it...
This commit is contained in:
Andy Green 2019-07-14 15:45:32 -07:00
parent a67efe80f1
commit bc394b0680

View file

@ -1128,8 +1128,8 @@ lws_generate_client_handshake(struct lws *wsi, char *pkt)
#if defined(LWS_ROLE_WS)
if (wsi->do_ws) {
const char *conn1 = "";
if (!wsi->client_pipeline)
conn1 = "close, ";
// if (!wsi->client_pipeline)
// conn1 = "close, ";
p = lws_generate_client_ws_handshake(wsi, p, conn1);
} else
#endif