Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Feb 25, 2024
1 parent 69f3032 commit b5922fc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/web/websocket/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5922fc

Please sign in to comment.