http2: fix Http2Response.sendDate#34850
Closed
joaolucasl wants to merge 2 commits intonodejs:masterfrom
Closed
Conversation
The `sendDate` flag was not being respected by the current implementation and the `Date` header was being sent regardless of the config. This commit fixes that and adds tests for this case. Fixes: nodejs#34841
Collaborator
|
Review requested:
|
rickyes
approved these changes
Aug 20, 2020
lundibundi
approved these changes
Aug 22, 2020
test/parallel/test-http2-compat-serverresponse-headers-send-date.js
Outdated
Show resolved
Hide resolved
Member
|
Missed CI notification: https://ci.nodejs.org/job/node-test-pull-request/32868/ ✔️ |
Collaborator
This comment has been minimized.
This comment has been minimized.
Trott
approved these changes
Aug 22, 2020
Trott
pushed a commit
that referenced
this pull request
Aug 22, 2020
The `sendDate` flag was not being respected by the current implementation and the `Date` header was being sent regardless of the config. This commit fixes that and adds tests for this case. Fixes: #34841 PR-URL: #34850 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Member
|
Landed in f5102fb. Thanks for the contribution! 🎉 |
BethGriggs
pushed a commit
that referenced
this pull request
Aug 24, 2020
The `sendDate` flag was not being respected by the current implementation and the `Date` header was being sent regardless of the config. This commit fixes that and adds tests for this case. Fixes: #34841 PR-URL: #34850 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Merged
addaleax
pushed a commit
that referenced
this pull request
Sep 22, 2020
The `sendDate` flag was not being respected by the current implementation and the `Date` header was being sent regardless of the config. This commit fixes that and adds tests for this case. Fixes: #34841 PR-URL: #34850 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Merged
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
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.
The
sendDateflag was not being respectedby the current implementation and theDateheader was being sent regardless of the config.
This commit fixes that and adds tests for this case.
Fixes: #34841
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes