1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Failed to set http request headers - fixes #32

This commit is contained in:
Nicholas O'Leary 2013-10-02 19:42:52 +01:00
parent d332600149
commit eafc1e4f5d

View File

@ -82,7 +82,7 @@ function HTTPRequest(n) {
var opts = urllib.parse(msg.url||url); var opts = urllib.parse(msg.url||url);
opts.method = msg.method||method; opts.method = msg.method||method;
if (msg.headers) { if (msg.headers) {
opts.header = headers; opts.header = msg.headers;
} }
var req = httplib.request(opts,function(res) { var req = httplib.request(opts,function(res) {
res.setEncoding('utf8'); res.setEncoding('utf8');