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

added decodeQuery() to uri.nim #15345

Closed
wants to merge 6 commits into from
Closed

Conversation

mrhdias
Copy link
Contributor

@mrhdias mrhdias commented Sep 16, 2020

Implements decodeQuery in uri module.

doAssert decodeQuery("") == {:}
doAssert decodeQuery("foo=bar") == {"foo": "bar"}
doAssert decodeQuery("foo=bar+%26+baz") == {"foo": "bar & baz"}
doAssert decodeQuery("foo") == {"foo": ""}

Copy link
Contributor

@dom96 dom96 left a comment

Choose a reason for hiding this comment

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

Nice! I do like the symmetry. Much simpler than my implementation in #7761.

@Clyybber
Copy link
Contributor

Clyybber commented Sep 18, 2020

This PR was not created against devel, I'm fixing that it in #15357

@Clyybber Clyybber closed this Sep 18, 2020
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

3 participants