diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index e00c907cf..099e80e1b 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -30,7 +30,7 @@ module.exports = function(RED) { var urlencParser = express.urlencoded(); function rawBodyParser(req, res, next) { - if (req._body) return next(); + if (req._body) { return next(); } req.body = ""; req._body = true; getBody(req, { @@ -38,7 +38,7 @@ module.exports = function(RED) { length: req.headers['content-length'], encoding: 'utf8' }, function (err, buf) { - if (err) return next(err); + if (err) { return next(err); } req.body = buf; next(); }); @@ -95,10 +95,10 @@ module.exports = function(RED) { } } if (RED.settings.httpNodeCors) { - var routes = RED.httpNode.routes['options']; - for (var i = 0; i