-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
url: use "empty" object for empty query strings #6289
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This makes things consistent with the way that the querystring module creates parsed results.
/cc @Trott |
Any reason not to just use |
Probably performance. |
CI is green except for flaky tests. |
LGTM |
4 similar comments
LGTM |
LGTM |
LGTM |
LGTM |
jasnell
pushed a commit
that referenced
this pull request
Apr 20, 2016
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: #6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Landed in e9dc630 |
Marking as don't land on v4.x and v5.x because this depends on a prior semver-major change. |
joelostrowski
pushed a commit
to joelostrowski/node
that referenced
this pull request
Apr 25, 2016
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: nodejs#6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell
pushed a commit
that referenced
this pull request
Apr 26, 2016
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: #6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
esatterwhite
added a commit
to node-tastypie/tastypie
that referenced
this pull request
Jul 16, 2016
nodejs/node#6289 This pull request changes the query string to be an empty object rather than an object inherited from Object.prototype. So it no longer has the hasOwnProperty method
ghost
mentioned this pull request
Aug 3, 2016
cressie176
pushed a commit
to guidesmiths/request-token
that referenced
this pull request
Aug 3, 2017
vbuyakov
pushed a commit
to vbuyakov/homebridge-http-notification-server
that referenced
this pull request
Sep 4, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
Affected core subsystem(s)
Description of change
This makes things consistent with the way that the
querystring
module creates parsed results.