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

conditional formData assignment only

This commit is contained in:
Nick Kasten 2019-03-05 11:12:59 -06:00
parent 7063a88513
commit e55481a454

View File

@ -78,7 +78,6 @@ module.exports = function(RED) {
}
var opts = {};
opts.url = url;
opts.formData = {};
opts.timeout = node.reqTimeout;
opts.method = method;
opts.headers = {};
@ -170,8 +169,7 @@ module.exports = function(RED) {
}
}
opts.body = payload;
}
}
}
// revert to user supplied Capitalisation if needed.
if (opts.headers.hasOwnProperty('content-type') && (ctSet !== 'content-type')) {