Title: http.ServerResponse#sendDate makes overly definitive claim about HTTP standards · Issue #42619 · nodejs/node · GitHub
Open Graph Title: http.ServerResponse#sendDate makes overly definitive claim about HTTP standards · Issue #42619 · nodejs/node
X Title: http.ServerResponse#sendDate makes overly definitive claim about HTTP standards · Issue #42619 · nodejs/node
Description: Affected URL(s) https://nodejs.org/docs/latest-v16.x/api/http.html#responsesenddate Description of the problem From the docs on this parameter: This should only be disabled for testing; HTTP requires the Date header in responses. However...
Open Graph Description: Affected URL(s) https://nodejs.org/docs/latest-v16.x/api/http.html#responsesenddate Description of the problem From the docs on this parameter: This should only be disabled for testing; HTTP requir...
X Description: Affected URL(s) https://nodejs.org/docs/latest-v16.x/api/http.html#responsesenddate Description of the problem From the docs on this parameter: This should only be disabled for testing; HTTP requir...
Opengraph URL: https://github.com/nodejs/node/issues/42619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http.ServerResponse#sendDate makes overly definitive claim about HTTP standards","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/docs/latest-v16.x/api/http.html#responsesenddate\n\n### Description of the problem\n\nFrom the docs on this parameter:\r\n\r\n\u003e This should only be disabled for testing; HTTP requires the Date header in responses.\r\n\r\nHowever, the story seems to be a bit more complicated than that; [RFC 7231](https://httpwg.org/specs/rfc7231.html#header.date) has a rather dense paragraph which can be summarized as:\r\n* Server MUST NOT send Date if it doesn't have a suitable clock\r\n* Server MAY send Date for 1xx or 5xx statuses\r\n* Server MUST send Date otherwise (i.e. it has a clock and is sending 2/3/4xx)\r\n\r\nThis note appears to have been added along with the setting itself in 1e425e3fa774fefd3553ecaa6f0ac35f9b0a1355, which doesn't provide any insight on where this claim originated.\r\n\r\nI'm not an expert on either Node or HTTP, but it seems like maybe the docs should be updated to something like the below?\r\n\r\n\u003e This should generally be left enabled; the Date header is mandatory in most cases. (See [RFC 7231](https://httpwg.org/specs/rfc7231.html#header.date) for details.)","author":{"url":"https://github.com/wolfgang42","@type":"Person","name":"wolfgang42"},"datePublished":"2022-04-06T04:28:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/42619/node/issues/42619"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f3bc557-9bef-f4fe-529e-7a4362d994fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6EA:1EEE:39AA6B:4A59F4:6A4C468A |
| html-safe-nonce | b898c1708d958b16d8bf16ff12e5b06bad0c0c5bbb9ac73f3cc1b14d462d2a68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkVBOjFFRUU6MzlBQTZCOjRBNTlGNDo2QTRDNDY4QSIsInZpc2l0b3JfaWQiOiI1Nzg3ODI0MjE5NjQ0MjQ5NzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb5d8485b01fe7acf6d12b1f444ef48277353ef5fd202d547b82cd63275f78c8 |
| hovercard-subject-tag | issue:1194006219 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/42619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0337271a4a9de725457c3b441c920af75c483e4dc5d13c8b9f1b891caada032d/nodejs/node/issues/42619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0337271a4a9de725457c3b441c920af75c483e4dc5d13c8b9f1b891caada032d/nodejs/node/issues/42619 |
| og:image:alt | Affected URL(s) https://nodejs.org/docs/latest-v16.x/api/http.html#responsesenddate Description of the problem From the docs on this parameter: This should only be disabled for testing; HTTP requir... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wolfgang42 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3996b3b83990e134be6c099ab9a7f48f140ae80f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width