Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix websockets failing on Firefox #76

Merged
merged 2 commits into from
Aug 1, 2021
Merged

Fix websockets failing on Firefox #76

merged 2 commits into from
Aug 1, 2021

Conversation

davidpdrsn
Copy link
Member

Axum expected the Connection header to be exactly upgrade. Turns
out thats a bit too strict as this didn't work in Firefox.

Turns out Connection just has to contain upgrade. At least that is
what warp does.

Axum expected the `Connection` header to be _exactly_ `upgrade`. Turns
out thats a bit too strict as this didn't work in Firefox.

Turns out `Connection` just has to contain `upgrade`. At least that is
what [warp does](https://github.com/seanmonstar/warp/blob/master/src/filters/ws.rs#L46).
@davidpdrsn davidpdrsn merged commit 69ae7a6 into main Aug 1, 2021
@davidpdrsn davidpdrsn deleted the fix-ws-header-parse branch August 1, 2021 19:00
@davidpdrsn davidpdrsn mentioned this pull request Aug 1, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant