mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
pass original url request through http request node
(will be useful when we handle errors... ;-)
This commit is contained in:
parent
63191bc641
commit
b8c460b825
@ -251,6 +251,7 @@ module.exports = function(RED) {
|
|||||||
msg.statusCode = res.statusCode;
|
msg.statusCode = res.statusCode;
|
||||||
msg.headers = res.headers;
|
msg.headers = res.headers;
|
||||||
msg.payload = "";
|
msg.payload = "";
|
||||||
|
msg.url = url;
|
||||||
res.on('data',function(chunk) {
|
res.on('data',function(chunk) {
|
||||||
msg.payload += chunk;
|
msg.payload += chunk;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user