We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ac67d commit 75ceaf7Copy full SHA for 75ceaf7
src/http-server-connection.js
@@ -13,7 +13,6 @@ module.exports = function (classes){
13
this.res = res;
14
this.isStreaming = false;
15
16
- this.res.connection.on('end', this.connectionEndHandler);
17
},
18
19
connectionEndHandler: function(){
src/server.js
@@ -165,7 +165,7 @@ module.exports = function (classes) {
165
if (!conn.isStreaming) {
166
res.writeHead(200, headers);
167
res.write(encoded);
168
- res.connection.removeListener('end', conn.connectionEndHandler);
+ conn.connectionEndHandler();
169
res.end();
170
} else {
171
0 commit comments