mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
449d76a6c7
commit
16e021e94f
@ -146,6 +146,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
if (msg.hasOwnProperty('followRedirects')) {
|
if (msg.hasOwnProperty('followRedirects')) {
|
||||||
opts.followRedirect = msg.followRedirects;
|
opts.followRedirect = msg.followRedirects;
|
||||||
|
opts.followAllRedirects = !!opts.followRedirect;
|
||||||
}
|
}
|
||||||
var redirectList = [];
|
var redirectList = [];
|
||||||
if (!opts.hasOwnProperty('followRedirect') || opts.followRedirect) {
|
if (!opts.hasOwnProperty('followRedirect') || opts.followRedirect) {
|
||||||
@ -282,7 +283,7 @@ module.exports = function(RED) {
|
|||||||
node.error(RED._("httpin.errors.invalid-payload"),msg);
|
node.error(RED._("httpin.errors.invalid-payload"),msg);
|
||||||
nodeDone();
|
nodeDone();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if ( method == "GET" && typeof msg.payload !== "undefined" && paytobody) {
|
} else if ( method == "GET" && typeof msg.payload !== "undefined" && paytobody) {
|
||||||
if (typeof msg.payload === "object") {
|
if (typeof msg.payload === "object") {
|
||||||
opts.body = JSON.stringify(msg.payload);
|
opts.body = JSON.stringify(msg.payload);
|
||||||
@ -302,7 +303,7 @@ module.exports = function(RED) {
|
|||||||
opts.headers[clSet] = opts.headers['content-length'];
|
opts.headers[clSet] = opts.headers['content-length'];
|
||||||
delete opts.headers['content-length'];
|
delete opts.headers['content-length'];
|
||||||
}
|
}
|
||||||
|
|
||||||
var noproxy;
|
var noproxy;
|
||||||
if (noprox) {
|
if (noprox) {
|
||||||
for (var i = 0; i < noprox.length; i += 1) {
|
for (var i = 0; i < noprox.length; i += 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user