summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/http_server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodejs/unit-http/http_server.js')
-rwxr-xr-xsrc/nodejs/unit-http/http_server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodejs/unit-http/http_server.js b/src/nodejs/unit-http/http_server.js
index ddacb420..b35ad259 100755
--- a/src/nodejs/unit-http/http_server.js
+++ b/src/nodejs/unit-http/http_server.js
@@ -333,6 +333,8 @@ Server.prototype.run_events = function (server, req, res) {
});
Promise.resolve().then(() => {
+ req.emit("finish");
+
if (res.finished) {
unit_lib.unit_response_end(res);
}