Permalink
Browse files

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

  • Loading branch information...
1 parent 1107a1b commit a9ea21feb43188922f823ddc9a7f2e67bea95aea @jed jed committed with ry Nov 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.js
View
2 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 {

0 comments on commit a9ea21f

Please sign in to comment.