Title: http request with header "constructor" results to a value of "function Object() { [native code] }, " · Issue #4456 · nodejs/node · GitHub
Open Graph Title: http request with header "constructor" results to a value of "function Object() { [native code] }, " · Issue #4456 · nodejs/node
X Title: http request with header "constructor" results to a value of "function Object() { [native code] }, " · Issue #4456 · nodejs/node
Description: I'm using Node v5.3.0 on Windows 10. I was playing with http and found out that a request with a header name constructor results to function Object() { [native code] }, Simple HTTP Server const http = require('http'); http.createServer((...
Open Graph Description: I'm using Node v5.3.0 on Windows 10. I was playing with http and found out that a request with a header name constructor results to function Object() { [native code] }, Simple HTTP Server const htt...
X Description: I'm using Node v5.3.0 on Windows 10. I was playing with http and found out that a request with a header name constructor results to function Object() { [native code] }, Simple HTTP Server const...
Opengraph URL: https://github.com/nodejs/node/issues/4456
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http request with header \"constructor\" results to a value of \"function Object() { [native code] }, \"","articleBody":"I'm using Node v5.3.0 on Windows 10. I was playing with http and found out that a request with a header name `constructor` results to `function Object() { [native code] },`\n\nSimple HTTP Server\n\n``` js\nconst http = require('http');\n\nhttp.createServer((request, response) =\u003e {\n response.end(JSON.stringify(request.headers, null, '\\t'));\n })\n .listen(8000);\n\n```\n\nRequest\n\n``` js\nconst net = require('net');\nconst client = new net.Socket();\n\nclient.connect(8000, '127.0.0.1', () =\u003e {\n client.write('GET / HTTP/1.1\\r\\nconstructor:\\r\\n\\r\\n');\n});\n\nclient.on('data', (data) =\u003e {\n console.log(data.toString());\n client.destroy();\n});\n\nclient.on('close', function() {\n console.log('Connection closed');\n});\n```\n\nOutput\n\n```\nHTTP/1.1 200 OK\nDate: Mon, 28 Dec 2015 21:17:55 GMT\nConnection: keep-alive\nContent-Length: 59\n\n{\n \"constructor\": \"function Object() { [native code] }, \"\n}\nConnection closed\n```\n","author":{"url":"https://github.com/ravenjohn","@type":"Person","name":"ravenjohn"},"datePublished":"2015-12-28T21:21:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4456/node/issues/4456"}
| 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:61eb3149-84c3-0577-d20d-087963615a8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8348:134A7F:23C109:34BF4E:6A4E00B3 |
| html-safe-nonce | 51157e2c28d68d3a96c683408ea4017268916584b2e85a859c8624b479a3e1d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzQ4OjEzNEE3RjoyM0MxMDk6MzRCRjRFOjZBNEUwMEIzIiwidmlzaXRvcl9pZCI6Ijg4NTk4MzgyMDcwNDQyMjMxNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 974da0c6620ccdda985a6462bc59f1ed1653408734dcad9204dcd05e06cfc383 |
| hovercard-subject-tag | issue:124128893 |
| 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/4456/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca2549a71381cbff473614f6901a66ed61669a7c502e54920f334a32868aefe4/nodejs/node/issues/4456 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca2549a71381cbff473614f6901a66ed61669a7c502e54920f334a32868aefe4/nodejs/node/issues/4456 |
| og:image:alt | I'm using Node v5.3.0 on Windows 10. I was playing with http and found out that a request with a header name constructor results to function Object() { [native code] }, Simple HTTP Server const htt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ravenjohn |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width