Comparing version 0.1.0 to 0.1.1
@@ -38,3 +38,3 @@ /** | ||
//TODO support array for method, ['get', 'post'] | ||
return method === this.config.method; | ||
return (method && method.toLowerCase()) === (this.config.method && this.config.method.toLowerCase()); | ||
}; | ||
@@ -68,3 +68,3 @@ | ||
// 1. check method | ||
var method = (options.method && options.method.toLowerCase()) || METHODS.GET; | ||
var method = options.method || METHODS.GET; | ||
if (!self.acceptMethod(method)) { | ||
@@ -71,0 +71,0 @@ return null; |
{ | ||
"name": "routr", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A router for both server and client", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^1.9.1", | ||
"chai": "^2.0.0", | ||
"coveralls": "^2.11.1", | ||
@@ -34,3 +34,3 @@ "istanbul": "^0.3.2", | ||
"mocha": "^2.0.1", | ||
"precommit-hook": "^1.0.2" | ||
"precommit-hook": "^2.0.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "jshintConfig": { |
@@ -86,2 +86,6 @@ # Routr | ||
## API | ||
- [Routr](https://github.com/yahoo/routr/blob/master/docs/routr.md) | ||
## License | ||
@@ -88,0 +92,0 @@ |
Sorry, the diff of this file is not supported yet
16859
10
99