Skip to content

Commit ee4613b

Browse files
implicitHeaders alias
implicitHeader alias for implicitHeaders to be compatible with Node.js
1 parent 427e60c commit ee4613b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/http.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,10 @@ OutgoingResponse.prototype._implicitHeaders = function _implicitHeaders() {
741741
}
742742
};
743743

744+
OutgoingResponse.prototype._implicitHeader = function() {
745+
this._implicitHeaders();
746+
};
747+
744748
OutgoingResponse.prototype.write = function write() {
745749
this._implicitHeaders();
746750
return OutgoingMessage.prototype.write.apply(this, arguments);

0 commit comments

Comments
 (0)