From 8f71ee4631e7954f25bf26bf6a1d3a3c9eeac8fc Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Wed, 6 Nov 2013 21:08:00 +0000 Subject: [PATCH] Unable to pass custom headers to HTTP Response node fixes #54 --- nodes/io/21-httpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/io/21-httpin.js b/nodes/io/21-httpin.js index c4beaba4e..0d71a8723 100644 --- a/nodes/io/21-httpin.js +++ b/nodes/io/21-httpin.js @@ -62,7 +62,7 @@ function HTTPOut(n) { this.on("input",function(msg) { if (msg.res) { if (msg.headers) { - res.set(msg.headers); + msg.res.set(msg.headers); } var statusCode = msg.statusCode || 200; msg.res.send(statusCode,msg.payload);