-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Any way to bypass querystring.stringify with empty Object ? #12234
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.questionIssues that look for answers.Issues that look for answers.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.querystringIssues and PRs related to the built-in querystring module.Issues and PRs related to the built-in querystring module.questionIssues that look for answers.Issues that look for answers.
I am working currently on a project that requires to send custom GET HTTP requests.
I am using the default querystring builder (https://nodejs.org/api/querystring.html)
The problem is for Object (probably also for empty array) such as
is serialiazed as :
The expected result :
or its URI encoded version :
So , how can I ever hope to do that ? Any way to bypass this default behalvior ?
Here is my full code if you want :