Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperhsiung committed Oct 13, 2018
1 parent a5f222f commit 6ef90da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/match.js
Expand Up @@ -15,7 +15,7 @@ module.exports = function(req) {
if (i === stacks.length - 1) {
const mounts = this.handlers[s];
if (mounts) {
handlers = mounts[req.method.toLowerCase()] || mounts['all'];
handlers = mounts[req.method.toLowerCase()] || mounts['all'] || [];
} else {
handlers = [];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "restar",
"version": "2.0.6",
"version": "2.0.7",
"description": "web library for rest api",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 6ef90da

Please sign in to comment.