From bf2d7fec2f59cd689373d553170aaaed501c55bf Mon Sep 17 00:00:00 2001 From: Nikolai Onken Date: Sun, 5 Jul 2015 07:17:52 +0000 Subject: [PATCH] Simplify util and config --- node_modules/frontdoor/lib/section.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 2eac24da..3ad67591 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -151,7 +151,7 @@ module.exports = function Section(name, description, types) { this.handle = (function(path, req, res, next) { var that = this; - debugger; + if (arguments.length == 2) { return this._rootHandler.apply(this, arguments); } @@ -172,7 +172,7 @@ module.exports = function Section(name, description, types) { var method = req.method.toLowerCase(); if (methods.indexOf(method) == -1) return next(); - + var handler = this.match(req, path, method); if (!handler) return next();