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:
parent
7063a88513
commit
e55481a454
@ -78,7 +78,6 @@ module.exports = function(RED) {
|
||||
}
|
||||
var opts = {};
|
||||
opts.url = url;
|
||||
opts.formData = {};
|
||||
opts.timeout = node.reqTimeout;
|
||||
opts.method = method;
|
||||
opts.headers = {};
|
||||
@ -171,7 +170,6 @@ module.exports = function(RED) {
|
||||
}
|
||||
opts.body = payload;
|
||||
}
|
||||
|
||||
}
|
||||
// revert to user supplied Capitalisation if needed.
|
||||
if (opts.headers.hasOwnProperty('content-type') && (ctSet !== 'content-type')) {
|
||||
|
Loading…
Reference in New Issue
Block a user