Node.js: res.write() must return a bool value.

This commit is contained in:
Alexander Borisov
2018-11-15 14:42:51 +03:00
parent fb18a09cd7
commit 5c2021f834

View File

@@ -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) {