Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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