Title: Invalid header value check · Issue #39684 · nodejs/node · GitHub
Open Graph Title: Invalid header value check · Issue #39684 · nodejs/node
X Title: Invalid header value check · Issue #39684 · nodejs/node
Description: Version v16.6.0 Platform Linux solus 5.13.6-190.current #1 SMP PREEMPT Fri Jul 30 17:08:12 UTC 2021 x86_64 GNU/Linux Subsystem http What steps will reproduce the bug? http.validateHeaderValue('location', '☃') How often does it reproduce?...
Open Graph Description: Version v16.6.0 Platform Linux solus 5.13.6-190.current #1 SMP PREEMPT Fri Jul 30 17:08:12 UTC 2021 x86_64 GNU/Linux Subsystem http What steps will reproduce the bug? http.validateHeaderValue('loca...
X Description: Version v16.6.0 Platform Linux solus 5.13.6-190.current #1 SMP PREEMPT Fri Jul 30 17:08:12 UTC 2021 x86_64 GNU/Linux Subsystem http What steps will reproduce the bug? http.validateHeaderValue('...
Opengraph URL: https://github.com/nodejs/node/issues/39684
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid header value check","articleBody":"### Version\n\nv16.6.0\n\n### Platform\n\nLinux solus 5.13.6-190.current #1 SMP PREEMPT Fri Jul 30 17:08:12 UTC 2021 x86_64 GNU/Linux\n\n### Subsystem\n\nhttp\n\n### What steps will reproduce the bug?\n\n```\r\nhttp.validateHeaderValue('location', '☃')\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways.\n\n### What is the expected behavior?\n\nNo error.\n\n### What do you see instead?\n\n```\r\nTypeError [ERR_INVALID_CHAR]: Invalid character in header content [\"location\"]\r\n at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)\r\n at new NodeError (node:internal/errors:371:5)\r\n at Object.__node_internal_ [as validateHeaderValue] (node:_http_outgoing:567:11) {\r\n code: 'ERR_INVALID_CHAR'\r\n}\r\n```\n\n### Additional information\n\n[RFC2616](https://datatracker.ietf.org/doc/html/rfc2616#section-4.2):\r\n```\r\n OCTET = \u003cany 8-bit sequence of data\u003e\r\n CHAR = \u003cany US-ASCII character (octets 0 - 127)\u003e\r\n CTL = \u003cany US-ASCII control character\r\n (octets 0 - 31) and DEL (127)\u003e\r\n CR = \u003cUS-ASCII CR, carriage return (13)\u003e\r\n LF = \u003cUS-ASCII LF, linefeed (10)\u003e\r\n SP = \u003cUS-ASCII SP, space (32)\u003e\r\n HT = \u003cUS-ASCII HT, horizontal-tab (9)\u003e\r\n CRLF = CR LF\r\n LWS = [CRLF] 1*( SP | HT )\r\n\r\n message-header = field-name \":\" [ field-value ]\r\n field-name = token\r\n field-value = *( field-content | LWS )\r\n field-content = \u003cthe OCTETs making up the field-value\r\n and consisting of either *TEXT or combinations\r\n of token, separators, and quoted-string\u003e\r\n```\r\n","author":{"url":"https://github.com/szmarczak","@type":"Person","name":"szmarczak"},"datePublished":"2021-08-06T10:51:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/39684/node/issues/39684"}
| 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:dc07b16e-c22f-1d72-3994-cce4a8e1be71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBB2:1EDE:5A8FD8:82C484:6A4CCC50 |
| html-safe-nonce | 16cb960c112f46aacff321d4e3c9d967ab6763ca7ca23ba5e149a2dda56e3cbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkIyOjFFREU6NUE4RkQ4OjgyQzQ4NDo2QTRDQ0M1MCIsInZpc2l0b3JfaWQiOiIyMDA5NjM0MjUyMDU2NzQyOTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54a9d8bf93db823e516f4f68d005122c43474a7a1c0b616085da91be7adc7f52 |
| hovercard-subject-tag | issue:962626603 |
| 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/39684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8048d479f169d0e697692b044dcf49983186b6cb0d90b8ab334544ed86e1d71/nodejs/node/issues/39684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8048d479f169d0e697692b044dcf49983186b6cb0d90b8ab334544ed86e1d71/nodejs/node/issues/39684 |
| og:image:alt | Version v16.6.0 Platform Linux solus 5.13.6-190.current #1 SMP PREEMPT Fri Jul 30 17:08:12 UTC 2021 x86_64 GNU/Linux Subsystem http What steps will reproduce the bug? http.validateHeaderValue('loca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | szmarczak |
| hostname | github.com |
| expected-hostname | github.com |
| None | ee8a9d18044a05fe2d57b9ae797da38c8be34effb03f015f7c42e94770d28a1b |
| 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 | f84814acc6f036583fd43463f5847a846243d2a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width