From bc394b0680ba4b0a1789d549f9464ad9ae6425a5 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 14 Jul 2019 15:45:32 -0700 Subject: [PATCH] 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... --- lib/roles/http/client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c index c44f6de7c..e66805436 100644 --- a/lib/roles/http/client/client.c +++ b/lib/roles/http/client/client.c @@ -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