1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add res.responseUrl to httprequest node response

This commit is contained in:
Dave Conway-Jones 2016-12-16 21:54:24 +00:00
parent f6820ec615
commit fc263718a1

View File

@ -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) {