Backed out changeset f74d4dd9c3db.

This closes #240 issue on GitHub.
This commit is contained in:
Valentin Bartenev
2019-04-03 18:40:47 +03:00
parent 6241099db2
commit 7b839bf5da

View File

@@ -197,6 +197,14 @@ function writeHead(statusCode, reason, obj) {
}
};
/*
* Some Node.js packages are known to be using this undocumented function,
* notably "compression" middleware.
*/
ServerResponse.prototype._implicitHeader = function _implicitHeader() {
this.writeHead(this.statusCode);
};
ServerResponse.prototype._writeBody = function(chunk, encoding, callback) {
var contentLength = 0;