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

feat(path-and-query): allow utf8 char, not rfc 3986 compliant, in path and query #715

Merged

Conversation

joelwurtz
Copy link
Contributor

@joelwurtz joelwurtz commented Aug 29, 2024

This is a follow up of a PR in seanmonstar/httparse#178

This is mainly to allow incoming request that may have utf8 char in their path or query as some browsers send them raw instead of doing a percent encode (see the details here : actix/actix-web#3102 (comment) for a list of browser doing that)

This patch allow to correctly build a request object based on this behavior

I made it simple for the moment as i don't know how you want to handle this, in a feature flag ? through an option ? neither of them ?

Also i don't know on which version this should be based, it seems that 0.2 still receive some support should it be backported to this version also ?

@joelwurtz joelwurtz changed the title feat(path-and-query): allow utf8 char, not rfc 3389 compliant, in path and query feat(path-and-query): allow utf8 char, not rfc 3986 compliant, in path and query Aug 29, 2024
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this! After talking with a few other people, this seems like the right way to go.

@seanmonstar seanmonstar merged commit 091ee9a into hyperium:master Dec 20, 2024
10 checks passed
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