ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
989 stars 475 forks source link

WebSocket headers are case insensitive #123

Open nxg opened 5 years ago

nxg commented 5 years ago

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.