mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Avoid adding null req/res properties to messages
This commit is contained in:
parent
de9ee37b42
commit
92d10384ba
@ -148,8 +148,12 @@ Node.prototype.send = function(msg) {
|
||||
delete mm.req;
|
||||
delete mm.res;
|
||||
var m = clone(mm);
|
||||
m.req = req;
|
||||
m.res = res;
|
||||
if (req) {
|
||||
m.req = req;
|
||||
}
|
||||
if (res) {
|
||||
m.res = res;
|
||||
}
|
||||
mm.req = req;
|
||||
mm.res = res;
|
||||
node.receive(m);
|
||||
|
Loading…
Reference in New Issue
Block a user