diff --git a/red/nodes.js b/red/nodes.js index 0eb50f352..c517c60aa 100644 --- a/red/nodes.js +++ b/red/nodes.js @@ -175,11 +175,13 @@ Node.prototype.send = function(msg) { // TODO: remove this http-node-specific fix somehow var req = mm.req; var res = mm.res; - mm.req = null; - mm.res = null; + delete mm.req; + delete mm.res; var m = clone(mm); m.req = req; m.res = res; + mm.req = req; + mm.res = res; node.receive(m); } }