WebSocket headers should be matched case insensitively (cf RFC 6455, p19), but rxws.py matched the upgrade header exactly. Chrome at least seems to send this header as WebSocket, causing the handshake to fail.
While examining this, I adjusted the WebSocketException exception so that it passed some useful information back to the exception handler.
WebSocket headers should be matched case insensitively (cf RFC 6455, p19), but
rxws.py
matched theupgrade
header exactly. Chrome at least seems to send this header asWebSocket
, causing the handshake to fail.While examining this, I adjusted the
WebSocketException
exception so that it passed some useful information back to the exception handler.