1
0
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:
Nicholas O'Leary 2013-10-20 00:09:15 +01:00
parent f8e8bf22c0
commit 778e0d2086

View File

@ -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');