mirror of https://github.com/node-red/node-red.git
pass original url request through http request node
(will be useful when we handle errors... ;-)pull/572/head
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