Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 1781c8b

Browse files
JacksonTianchrisdickinson
authored andcommitted
http: Improve _addHeaderLines method
Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 57ed3da commit 1781c8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/_http_incoming.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ IncomingMessage.prototype._addHeaderLines = function(headers, n) {
125125
raw = this.rawHeaders;
126126
dest = this.headers;
127127
}
128-
raw.push.apply(raw, headers);
129128

130129
for (var i = 0; i < n; i += 2) {
131130
var k = headers[i];
132131
var v = headers[i + 1];
132+
raw.push(k);
133+
raw.push(v);
133134
this._addHeaderLine(k, v, dest);
134135
}
135136
}

0 commit comments

Comments
 (0)