Simplify util and config

pull/117/merge
Nikolai Onken 2015-07-05 07:17:52 +00:00
rodzic 9d5904e9ba
commit bf2d7fec2f
1 zmienionych plików z 2 dodań i 2 usunięć

4
node_modules/frontdoor/lib/section.js wygenerowano vendored
Wyświetl plik

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