From a9ea21feb43188922f823ddc9a7f2e67bea95aea Mon Sep 17 00:00:00 2001 From: jed Date: Sun, 29 Nov 2009 01:00:30 -0700 Subject: [PATCH] fixed check on header type, to check member instead of object. --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 47296080976..caeff0f2c7f 100644 --- a/lib/http.js +++ b/lib/http.js @@ -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 {