fixed check on header type, to check member instead of object.
This commit is contained in:
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…
x
Reference in New Issue
Block a user