mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
http: don't emit 'data' after 'error'
PR-URL: https://github.com/nodejs/node/pull/28711 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
1665a9330c
commit
e573c39b88
2 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
'use strict';
|
||||
require('../common');
|
||||
const common = require('../common');
|
||||
const net = require('net');
|
||||
const http = require('http');
|
||||
|
||||
|
@ -37,4 +37,5 @@ http.request({
|
|||
agent
|
||||
}).once('error', function() {
|
||||
console.log('ignore');
|
||||
this.on('data', common.mustNotCall());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue