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

fix(headers): make ConnectionHeader and search for websocket protocol unicase #270

Merged
merged 2 commits into from
Jan 24, 2015

Conversation

cyderize
Copy link
Contributor

This makes ConnectionHeader case-insensitive since HTTP header field names are case-insensitive.

RFC6455 requires the Upgrade Protocol to search case-insensitively for "websocket". At the moment only lower-case works (I hit this when trying to get Autobahn to work with my websocket library).

Other protocol values may be case-sensitive, however, so ProtocolExt is still a normal case-sensitive String.

RFC6455 requires the Upgrade Protocol to search case-insensitively for
"websocket"
Other protocol values may be case-sensitive, however, so ProtocolExt is
still case-sensitive
Make ConnectionHeader case-insensitive since HTTP headers are
case-insensitive
@seanmonstar
Copy link
Member

awesome!

seanmonstar added a commit that referenced this pull request Jan 24, 2015
fix(headers): make ConnectionHeader and search for websocket protocol unicase
@seanmonstar seanmonstar merged commit fb92a26 into hyperium:master Jan 24, 2015
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