Skip to content

Commit 468fc7b

Browse files
committed
Merge branch 'trademob-master'
2 parents 577a7da + 975496f commit 468fc7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/http-server-connection.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ module.exports = function (classes){
1313
this.res = res;
1414
this.isStreaming = false;
1515

16-
this.res.connection.on('end', function responseEnd(){
16+
this.res.on('finish', function responseEnd(){
17+
self.emit('end');
18+
});
19+
20+
this.res.on('close', function responseEnd(){
1721
self.emit('end');
1822
});
1923
},

0 commit comments

Comments
 (0)