diff options
author | Alexander Borisov <alexander.borisov@nginx.com> | 2018-11-15 14:42:51 +0300 |
---|---|---|
committer | Alexander Borisov <alexander.borisov@nginx.com> | 2018-11-15 14:42:51 +0300 |
commit | 5c2021f8340566cbdac9dcc8e32c710d4b763a43 (patch) | |
tree | 95654ae25a7e55d9c827f22f3593e3c008904fbf | |
parent | fb18a09cd748ff0107d4e27e514c9f5caf3aa5e6 (diff) | |
download | unit-5c2021f8340566cbdac9dcc8e32c710d4b763a43.tar.gz unit-5c2021f8340566cbdac9dcc8e32c710d4b763a43.tar.bz2 |
Node.js: res.write() must return a bool value.
-rwxr-xr-x | src/nodejs/unit-http/http_server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodejs/unit-http/http_server.js b/src/nodejs/unit-http/http_server.js index 331778a3..57163c0b 100755 --- a/src/nodejs/unit-http/http_server.js +++ b/src/nodejs/unit-http/http_server.js @@ -227,7 +227,7 @@ ServerResponse.prototype._writeBody = function(chunk, encoding, callback) { ServerResponse.prototype.write = function write(chunk, encoding, callback) { this._writeBody(chunk, encoding, callback); - return this; + return true; }; ServerResponse.prototype.end = function end(chunk, encoding, callback) { |