query string support #3

Closed
opened 2020-02-28 12:09:06 +00:00 by Ghost · 4 comments

There's a useQuerystring: false in index.js, but not really any query string support.

I would say that handling query strings is a an expected feature as much as forms and well deserving a few lines.

There's a `useQuerystring: false` in index.js, but not really any query string support. I would say that handling query strings is a an expected feature as much as forms and well deserving a few lines.
Owner

That option is leftover and had to do with querystring vs qs vs url.

Query strings should just be part of the URL path as per usual.

What did you try that didn’t work?

That option is leftover and had to do with `querystring` vs `qs` vs `url`. Query strings should just be part of the URL path as per usual. What did you try that didn’t work?
Author

I don't have the code at hand but requests supports a qs object and it will do the proper encoding and concatenation. That's more readable IMHO.

FYI I ended up rewriting some code and use axios, this was just a nuisance, take this issue as a suggestion. The showstopper were timeouts, in my tests on Node timeout did not do anything.

I don't have the code at hand but requests supports a `qs` object and it will do the proper encoding and concatenation. That's more readable IMHO. FYI I ended up rewriting some code and use axios, this was just a nuisance, take this issue as a suggestion. The showstopper were timeouts, in my tests on Node `timeout` did not do anything.
Owner

In what way does it accept a qs object? Can you show me an example?

In what way does it accept a qs object? Can you show me an example?
Owner

Since I never got an example of what the code looks like, and I don't know what the issue is, I'm closing this out.

Since I never got an example of what the code looks like, and I don't know what the issue is, I'm closing this out.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/request.js#3
No description provided.