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

Suggest correct subprotocol when subprotocol mismatch #25

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

mbonneau
Copy link
Member

Fixes #24

I could not find this in the RFC, but it is better than suggesting 0 when things don't work out.

@cboden
Copy link
Member

cboden commented Jul 9, 2018

Your PR is the correct behaviour. The RFC states the server should respond with the sub-protocols it supports if it doesn't support the given request. Returning 0 was a bug I caused.

@mbonneau mbonneau merged commit 0cb7c02 into master Jul 9, 2018
@cboden cboden added this to the 0.2.5 milestone Jul 9, 2018
@cboden cboden deleted the suggest-subprotocol branch July 9, 2018 18:29
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.

2 participants