Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echo back requested Sec-Websocket-Protocol header for better browser … #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsingakbar
Copy link

…compatibility.

background

The novnc web version we are using will construct websocket object with protocol argument, which will result in the request sent by browser contains a Sec-Websocket-Protocol.
The golang implement won't bring it back in response header, then some browsers(chrome especially) will judge that the websocket server doesn't support the requested websocket subprotocols, and furthur close the connection.

@CendioOssman
Copy link
Member

Thank you for your contribution. There appears to be some unrelated changes in this commit as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants