1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Cannot clone http.req/http.res properties

Temporary fixes #97
This commit is contained in:
Nicholas O'Leary 2013-11-28 16:06:17 +00:00
parent 9690ebe9c1
commit 0bc0dc3a2b

View File

@ -171,7 +171,15 @@ Node.prototype.send = function(msg) {
if (node) { if (node) {
for (var k in msgs) { for (var k in msgs) {
var mm = msgs[k]; var mm = msgs[k];
// Temporary fix for #97
// TODO: remove this http-node-specific fix somehow
var req = mm.req;
var res = mm.res;
mm.req = null;
mm.res = null;
var m = clone(mm); var m = clone(mm);
m.req = req;
m.res = res;
node.receive(m); node.receive(m);
} }
} }