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:
parent
d332600149
commit
eafc1e4f5d
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user