From fc263718a188522f4d3e28ddae2e942233dfa98a Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 16 Dec 2016 21:54:24 +0000 Subject: [PATCH] Add res.responseUrl to httprequest node response --- nodes/core/io/21-httprequest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes/core/io/21-httprequest.js b/nodes/core/io/21-httprequest.js index 3fa8097d0..603342497 100644 --- a/nodes/core/io/21-httprequest.js +++ b/nodes/core/io/21-httprequest.js @@ -159,6 +159,7 @@ module.exports = function(RED) { (node.ret === "bin") ? res.setEncoding('binary') : res.setEncoding('utf8'); msg.statusCode = res.statusCode; msg.headers = res.headers; + msg.responseUrl = res.responseUrl; msg.payload = ""; // msg.url = url; // revert when warning above finally removed res.on('data',function(chunk) {