Unable to pass custom headers to HTTP Response node

fixes #54
This commit is contained in:
Nicholas O'Leary 2013-11-06 21:08:00 +00:00
parent 25596b06b1
commit 8f71ee4631
1 changed files with 1 additions and 1 deletions

View File

@ -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);