-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: match net module headers & http.IncomingMessage headers #17517
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
Merged
Conversation
This file contains hidden or 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
nornagon
suggested changes
Mar 25, 2019
nornagon
reviewed
Mar 27, 2019
nornagon
suggested changes
Mar 28, 2019
nornagon
approved these changes
Mar 28, 2019
Co-Authored-By: codebytere <codebytere@github.com>
Failure is:
which is assuredly not related, so merging regardless. |
Release Notes Persisted
|
kiku-jw
pushed a commit
to kiku-jw/electron
that referenced
this pull request
May 16, 2019
…n#17517) * fix: match net module headers & http.IncomingMessage headers * update net doc for cleanliness * address feedback from review * Update spec/api-net-spec.js Co-Authored-By: codebytere <codebytere@github.com> * add special cookie case
NilSet
pushed a commit
to NilSet/electron
that referenced
this pull request
Mar 4, 2020
Fixes electron#22521 Updates the docs for IncomingMessage.headers to match the changes made in electron#17517
4 tasks
zcbenz
added a commit
that referenced
this pull request
Mar 18, 2020
* docs: update type and description of IncomingMessage.headers Fixes #22521 Updates the docs for IncomingMessage.headers to match the changes made in #17517 * Update docs/api/incoming-message.md Co-Authored-By: Mark Lee <malept@users.noreply.github.com> Co-authored-by: Cheng Zhao <zcbenz@electronjs.org> Co-authored-by: Mark Lee <malept@users.noreply.github.com>
sentialx
pushed a commit
to sentialx/electron
that referenced
this pull request
Apr 7, 2020
…n#22522) * docs: update type and description of IncomingMessage.headers Fixes electron#22521 Updates the docs for IncomingMessage.headers to match the changes made in electron#17517 * Update docs/api/incoming-message.md Co-Authored-By: Mark Lee <malept@users.noreply.github.com> Co-authored-by: Cheng Zhao <zcbenz@electronjs.org> Co-authored-by: Mark Lee <malept@users.noreply.github.com>
17 tasks
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.
Description of Change
BREAKING CHANGE
Fixes #8117.
Filters net module incoming headers to more accurately match those returned in
http.IncomingMessage
.cc @nornagon @MarshallOfSound
More specifically, after this change:
age
,authorization
,content-length
,content-type
,etag
,expires
,from
,host
,if-modified-since
,if-unmodified-since
,last-modified
,location
,max-forwards
,proxy-authorization
,referer
,retry-after
, oruser-agent
are discarded.set-cookie
is always an array. Duplicates are added to the array.Tested with:
to ensure that headers conform to the new rules appropriately
Checklist
npm test
passesRelease Notes
Notes: Fixed disparity between
net
module headers and Node.js'http.IncomingMessage
headers