diff --git a/nodes/io/21-httpin.js b/nodes/io/21-httpin.js index c3e3a027b..cc6a6ebb0 100644 --- a/nodes/io/21-httpin.js +++ b/nodes/io/21-httpin.js @@ -82,7 +82,7 @@ function HTTPRequest(n) { var opts = urllib.parse(msg.url||url); opts.method = msg.method||method; if (msg.headers) { - opts.header = headers; + opts.header = msg.headers; } var req = httplib.request(opts,function(res) { res.setEncoding('utf8');