mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
HTTPRequest: custom headers not passed on
This commit is contained in:
parent
f8e8bf22c0
commit
778e0d2086
@ -83,7 +83,7 @@ function HTTPRequest(n) {
|
||||
var opts = urllib.parse(msg.url||url);
|
||||
opts.method = (msg.method||method).toUpperCase();
|
||||
if (msg.headers) {
|
||||
opts.header = msg.headers;
|
||||
opts.headers = msg.headers;
|
||||
}
|
||||
var req = httplib.request(opts,function(res) {
|
||||
res.setEncoding('utf8');
|
||||
|
Loading…
Reference in New Issue
Block a user