Title: The `sensitiveHeaders` HTTP2 symbol should be initialized via `Symbol.for` instead · Issue #36282 · nodejs/node · GitHub
Open Graph Title: The `sensitiveHeaders` HTTP2 symbol should be initialized via `Symbol.for` instead · Issue #36282 · nodejs/node
X Title: The `sensitiveHeaders` HTTP2 symbol should be initialized via `Symbol.for` instead · Issue #36282 · nodejs/node
Description: Is your feature request related to a problem? Please describe. node/lib/internal/http2/util.js Line 35 in 6eec858 const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders'); Currently to use the symbol we need to import it from th...
Open Graph Description: Is your feature request related to a problem? Please describe. node/lib/internal/http2/util.js Line 35 in 6eec858 const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders'); Currently to use...
X Description: Is your feature request related to a problem? Please describe. node/lib/internal/http2/util.js Line 35 in 6eec858 const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders'); Currentl...
Opengraph URL: https://github.com/nodejs/node/issues/36282
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `sensitiveHeaders` HTTP2 symbol should be initialized via `Symbol.for` instead","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\r\nhttps://github.com/nodejs/node/blob/6eec858f34a40ffa489c1ec54bb24da72a28c781/lib/internal/http2/util.js#L35\r\n\r\nCurrently to use the symbol we need to import it from the `http2` module. A better solution would be to use `Symbol.for` like in the case of [custom inspect symbol](https://nodejs.org/api/util.html#util_util_inspect_custom).\r\n\r\n**Describe the solution you'd like**\r\n\r\n```diff\r\n-const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders');\r\n+const kSensitiveHeaders = Symbol.for('nodejs.http2.sensitiveHeaders');\r\n```\r\n\r\n**Describe alternatives you've considered**\r\n\r\nNone.\r\n","author":{"url":"https://github.com/szmarczak","@type":"Person","name":"szmarczak"},"datePublished":"2020-11-26T16:42:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/36282/node/issues/36282"}
| 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:cc267912-63b7-41a9-c5f3-e0ff65e6a4a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99CA:D209A:8A2140:B1DD2D:696B1A74 |
| html-safe-nonce | 194bae0ebdaa76ea9bf63c58a28e044685ef571beae636ddd4ec536a7fc9c5e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUNBOkQyMDlBOjhBMjE0MDpCMUREMkQ6Njk2QjFBNzQiLCJ2aXNpdG9yX2lkIjoiOTExNjQ0NzE3NDIyNzA3MzY1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 730208167b60110038555d3e0dca3d9339f4fa222f4051dfa145591590cbe0fe |
| hovercard-subject-tag | issue:751722938 |
| 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/36282/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a2d18b30dcc85efc89421b554a98a39427552cd29b947c5bbbf93f1482899f8/nodejs/node/issues/36282 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a2d18b30dcc85efc89421b554a98a39427552cd29b947c5bbbf93f1482899f8/nodejs/node/issues/36282 |
| og:image:alt | Is your feature request related to a problem? Please describe. node/lib/internal/http2/util.js Line 35 in 6eec858 const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders'); Currently to use... |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width