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

Don't encode square brackets #33

Open
arh1 opened this issue Aug 2, 2016 · 0 comments
Open

Don't encode square brackets #33

arh1 opened this issue Aug 2, 2016 · 0 comments

Comments

@arh1
Copy link
Contributor

arh1 commented Aug 2, 2016

Per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI it seems we should not encode square brackets, so that...

Arg.stringify({foo: ["bar", "baz"]});
// foo[0]=bar&foo[1]=baz

rather than...

Arg.stringify({foo: ["bar", "baz"]});
// foo%5B0%5D=bar&foo%5B1%5D=baz

Sound right? Happy to provide a PR...

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