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

Add accept_unmasked_frames setting in WebSocketUpgrade #1529

Merged
merged 3 commits into from Nov 15, 2022

Conversation

danielvschoor
Copy link
Contributor

Motivation

I am working with some legacy websocket clients that do not follow RFC 6455 and is thus sending unmasked frames via websockets. There isn't a way to change these clients, but tungstenite does expose an accept_unmasked_frames config option which can be set by axum.

Solution

I've added accept_unmasked_frames to WebSocketUpgrade to set the underlying config setting and allow unmasked frames

Please let me know if anything needs to change

Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Wanna add a note to the changelog as well?

@danielvschoor
Copy link
Contributor Author

Thanks! Wanna add a note to the changelog as well?

Done

axum/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidpdrsn davidpdrsn enabled auto-merge (squash) November 15, 2022 08:55
@davidpdrsn davidpdrsn merged commit c461f1d into tokio-rs:main Nov 15, 2022
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