mirror of https://github.com/nodejs/node.git
fixed check on header type, to check member instead of object.
parent
1107a1bd1e
commit
a9ea21feb4
|
@ -236,7 +236,7 @@ OutgoingMessage.prototype.sendHeaderLines = function (first_line, headers) {
|
|||
var message_header = first_line;
|
||||
var field, value;
|
||||
for (var i in headers) {
|
||||
if (headers instanceof Array) {
|
||||
if (headers[i] instanceof Array) {
|
||||
field = headers[i][0];
|
||||
value = headers[i][1];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue