We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prefinish
finish
1 parent 159577c commit 854a071Copy full SHA for 854a071
lib/_http_server.js
@@ -432,7 +432,7 @@ function connectionListener(socket) {
432
433
// When we're finished writing the response, check if this is the last
434
// respose, if so destroy the socket.
435
- res.on('prefinish', resOnFinish);
+ res.on('finish', resOnFinish);
436
function resOnFinish() {
437
// Usually the first incoming element should be our request. it may
438
// be that in the case abortIncoming() was called that the incoming
0 commit comments