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

Allow client to disable path normalization #672

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

froodian
Copy link
Contributor

@froodian froodian commented Oct 10, 2019

See the test for context - basically I have a URL like http://google.com/encoded/Y%2BY%2FY%3D/stuff, but when I use fasthttp, due to path normalization the actual request that gets made is to http://google.com/encoded/Y+Y/Y=/stuff. On some servers (e.g. fasthttp's server), these URLs are semantically equivalent, but on some servers (e.g. those google urls) they are not. If you click through those URLs you can see the difference in the 404 page that google returns. https://stackoverflow.com/questions/1957115/is-a-slash-equivalent-to-an-encoded-slash-2f-in-the-path-portion-of-a has some more context on the server-side situation as well.

This wires #649 through the client layer to solve this issue.

@erikdubbelboer erikdubbelboer merged commit ffcdb75 into valyala:master Oct 11, 2019
@erikdubbelboer
Copy link
Collaborator

Thanks!

@froodian froodian deleted the disable-path-normalizing branch October 11, 2019 15:42
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