pgaskin / easy-novnc

Single-binary noVNC instance, web UI, and multi-host proxy.
MIT License
178 stars 60 forks source link

Websocket connection broken on Chrome #5

Closed pgaskin closed 5 years ago

pgaskin commented 5 years ago

Error: Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: binary.

This is because (*websocket.Config).Protocol is set to binary, even when the request doesn't request a specific protocol. Other browsers (like Firefox) happen to request a protocol, so it works fine.