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:
parent
f6820ec615
commit
fc263718a1
@ -159,6 +159,7 @@ module.exports = function(RED) {
|
|||||||
(node.ret === "bin") ? res.setEncoding('binary') : res.setEncoding('utf8');
|
(node.ret === "bin") ? res.setEncoding('binary') : res.setEncoding('utf8');
|
||||||
msg.statusCode = res.statusCode;
|
msg.statusCode = res.statusCode;
|
||||||
msg.headers = res.headers;
|
msg.headers = res.headers;
|
||||||
|
msg.responseUrl = res.responseUrl;
|
||||||
msg.payload = "";
|
msg.payload = "";
|
||||||
// msg.url = url; // revert when warning above finally removed
|
// msg.url = url; // revert when warning above finally removed
|
||||||
res.on('data',function(chunk) {
|
res.on('data',function(chunk) {
|
||||||
|
Loading…
Reference in New Issue
Block a user