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

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

View File

@ -62,7 +62,7 @@ function HTTPOut(n) {
this.on("input",function(msg) { this.on("input",function(msg) {
if (msg.res) { if (msg.res) {
if (msg.headers) { if (msg.headers) {
res.set(msg.headers); msg.res.set(msg.headers);
} }
var statusCode = msg.statusCode || 200; var statusCode = msg.statusCode || 200;
msg.res.send(statusCode,msg.payload); msg.res.send(statusCode,msg.payload);