fixed check on header type, to check member instead of object.

pull/22966/head
jed 2009-11-29 01:00:30 -07:00 committed by Ryan Dahl
parent 1107a1bd1e
commit a9ea21feb4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {