mirror of https://github.com/node-red/node-red.git
conditional formData assignment only
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 = {};
|
||||
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue