From b5922fc28b163fd4c726b3d7030d17042dd43a8f Mon Sep 17 00:00:00 2001 From: Khafra Date: Sun, 25 Feb 2024 17:40:51 -0500 Subject: [PATCH] fixup --- lib/web/websocket/connection.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/web/websocket/connection.js b/lib/web/websocket/connection.js index 855706938a9..45f68e1de93 100644 --- a/lib/web/websocket/connection.js +++ b/lib/web/websocket/connection.js @@ -189,11 +189,6 @@ function establishWebSocketConnection (url, protocols, ws, onEstablish, options) failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.') return } - } else if (request.headersList.contains('sec-websocket-protocol', true)) { - // If the server did not send a Sec-WebSocket-Protocol header but the client did, - // fail the connection. - failWebsocketConnection(ws, 'Client sent a Sec-WebSocket-Protocol header but did not receive one from the server.') - return } response.socket.on('data', onSocketData)