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 ability to specifiy querystring lib in options. #1137

Merged
merged 1 commit into from
Oct 11, 2014

Conversation

jgrund
Copy link

@jgrund jgrund commented Oct 9, 2014

Add the ability to specify whether qs or querystring should be used for parsing and stringifying by passing a useQuerystring boolean option. Fixes #644.

Has been addressed earlier in #847 and will now merge cleanly.

@nylen
Copy link
Member

nylen commented Oct 9, 2014

Personally, I'm good with this change if you add a sentence or two to the readme describing the case where querystring works as expected and qs doesn't. I think request needs to be able to serialize arrays to a query string in the standard way.

@jgrund
Copy link
Author

jgrund commented Oct 9, 2014

Ok, updated readme with a section on querystring serialization.

@nylen
Copy link
Member

nylen commented Oct 9, 2014

I guess my comment was a little unclear. I don't think this needs a separate section in the readme, rather a short inline description of the problem this option solves is more what I had in mind. Like this:

nylen@choose-querystring

Add the ability to specify whether qs or querystring should be used by passing useQs.
@jgrund
Copy link
Author

jgrund commented Oct 9, 2014

Ah, I see. Repushed with the inline description.

@nylen
Copy link
Member

nylen commented Oct 9, 2014

👍 and thanks for including tests, btw. I'll merge this on Saturday unless someone objects or beats me to it.

@jgrund
Copy link
Author

jgrund commented Oct 9, 2014

Awesome. Thanks much.

nylen added a commit that referenced this pull request Oct 11, 2014
Add ability to specifiy querystring lib in options.
@nylen nylen merged commit 4d42d00 into request:master Oct 11, 2014
nylen added a commit to nylen/request that referenced this pull request Oct 17, 2014
Add ability to specifiy querystring lib in options.
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.

A list in the pair value of a form should submit multiple keys with the same name
2 participants