diff --git a/nodes/core/io/21-httprequest.html b/nodes/core/io/21-httprequest.html index 0d7119cb9..8f9e0df0c 100644 --- a/nodes/core/io/21-httprequest.html +++ b/nodes/core/io/21-httprequest.html @@ -88,6 +88,8 @@
rejectUnauthorized
If set to true, allows requests to be made to https sites that use self signed certificates.
+
followRedirects
+
If set to false prevent following Redirect (HTTP 301).true by default

Outputs

diff --git a/nodes/core/io/21-httprequest.js b/nodes/core/io/21-httprequest.js index c59c3fd97..b492fb9dc 100644 --- a/nodes/core/io/21-httprequest.js +++ b/nodes/core/io/21-httprequest.js @@ -108,6 +108,9 @@ module.exports = function(RED) { } } } + if (msg.hasOwnProperty('followRedirects')) { + opts.followRedirects = msg.followRedirects; + } if (msg.cookies) { var cookies = []; if (opts.headers.hasOwnProperty('cookie')) {