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 the ability to alphabetically sort query string parameters #726

Open
wowinter13 opened this issue Dec 5, 2019 · 0 comments
Open

Add the ability to alphabetically sort query string parameters #726

wowinter13 opened this issue Dec 5, 2019 · 0 comments

Comments

@wowinter13
Copy link

wowinter13 commented Dec 5, 2019

Currently Utils.encode_query_string serializes an object into string using default order:

Utils.encode_query_string({a: 2, c: 3, b: 1}) # a=2&c=3&b=1

But it would be nice to add the ability to sort query string ascending (maybe by default, like it was done in Httparty or ActiveSupport to_query).

Personally for me it was important, when I coded gem using rest-client and there was a need to generate MD5 from query params sorted alphabetically.

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

No branches or pull requests

1 participant