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:
parent
a67efe80f1
commit
bc394b0680
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue