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

Only parse + to space when decode is true #214

Merged
merged 1 commit into from Nov 13, 2019

Conversation

Anusien
Copy link
Contributor

@Anusien Anusien commented Oct 3, 2019

The parsing of '+' to ' ' is a constant source of confusion in the query-string module. This is correct behavior, but I think it should only occur when decode is set to true. This is because this decoding isn't handled by the decode-uri-component, but it's being done manually in this project. See this comment.

Fixes #119

@Anusien
Copy link
Contributor Author

Anusien commented Oct 8, 2019

@sindresorhus what do you think?

@sindresorhus
Copy link
Owner

Shouldn't encode be changed too then?

@Anusien
Copy link
Contributor Author

Anusien commented Oct 14, 2019

I don't see where encode does any replacement manually.

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.

+ is parsed as white space
2 participants