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

Http Out: remove excess debug

This commit is contained in:
Nick O'Leary 2014-07-09 09:48:09 +01:00
parent a7e7254317
commit 4d031891e5

View File

@ -60,7 +60,6 @@ module.exports = function(RED) {
}; };
this.callback = function(req,res) { this.callback = function(req,res) {
try {
if (node.method == "post") { if (node.method == "post") {
node.send({req:req,res:res,payload:req.body}); node.send({req:req,res:res,payload:req.body});
} else if (node.method == "get") { } else if (node.method == "get") {
@ -68,10 +67,6 @@ try {
} else { } else {
node.send({req:req,res:res}); node.send({req:req,res:res});
} }
}catch(err) {
console.log(err);
console.log(err.stack);
}
} }
var corsHandler = function(req,res,next) { next(); } var corsHandler = function(req,res,next) { next(); }
@ -130,7 +125,7 @@ console.log(err.stack);
} else { } else {
if (msg.res.get('content-length') == null) { if (msg.res.get('content-length') == null) {
var len; var len;
if (msg.payload ==== null) { if (msg.payload === null) {
len = 0; len = 0;
} else if (typeof msg.payload == "number") { } else if (typeof msg.payload == "number") {
len = Buffer.byteLength(""+msg.payload); len = Buffer.byteLength(""+msg.payload);