diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 49f6e57fb1c6fd..606c3da9bd75fc 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -289,19 +289,11 @@ OutgoingMessage.prototype._send = function _send(data, encoding, callback) { data = this._header + data; } else { const header = this._header; - if (this.outputData.length === 0) { - this.outputData = [{ - data: header, - encoding: 'latin1', - callback: null - }]; - } else { - this.outputData.unshift({ - data: header, - encoding: 'latin1', - callback: null - }); - } + this.outputData.unshift({ + data: header, + encoding: 'latin1', + callback: null + }); this.outputSize += header.length; this._onPendingData(header.length); }