Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Description
- Version: v12.0.0-pre (master branch)
- Platform: macOS Mojave, but probably irrelevant
- Subsystem: http
This code causes an assertion error in _http_client.js. Not sure if monkey-patching should be prevented or if the assertion should be a throw instead. But obviously it shouldn't be possible to trigger it.
'use strict';consthttp=require('http');constserver=http.createServer((req,res)=>{res.writeHead(200,{'Content-Type': 'text/plain'});res.end('okay');});server.listen(1337,'127.0.0.1');constreq=http.request({port: 1337,host: '127.0.0.1',method: 'GET',});req.write('');req.end(()=>{deletereq.socket.parser;});@nodejs/http
Metadata
Metadata
Assignees
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.