yog2-kernel
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "yog2-kernel", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "yog2 kernel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,3 @@ 'use strict'; | ||
'delete': true, | ||
'del': true, | ||
'copy': true, | ||
@@ -216,4 +217,8 @@ 'head': true, | ||
); | ||
var verbAction = action[req.method.toLowerCase()]; | ||
var method = req.method.toLowerCase(); | ||
var verbAction = action[method]; | ||
// use del as delete alias | ||
if (method === 'delete' && !verbAction) { | ||
verbAction = action.del; | ||
} | ||
debuglog('start action excution [%s] with method [%s]', action.__name__, req.method); | ||
@@ -220,0 +225,0 @@ if (verbAction && typeof verbAction === 'function') { |
56132
1453