Skip to content

Commit

Permalink
misc refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 2, 2012
1 parent e9cd82b commit 0fca62c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/router/index.js
Expand Up @@ -41,7 +41,6 @@ function Router(options) {
this._params = [];
this.caseSensitive = options.caseSensitive;
this.strict = options.strict;

this.middleware = function router(req, res, next){
self._dispatch(req, res, next);
};
Expand Down Expand Up @@ -241,14 +240,9 @@ Router.prototype.match = function(req, i, head){
, route;

// HEAD support
// TODO: clean this up
if (!head && 'head' == method) {
// attempt lookup
route = this.match(req, i, true);
if (route) return route;

// default to GET as res.render() / res.send()
// etc support HEAD
method = 'get';
}

Expand Down

0 comments on commit 0fca62c

Please sign in to comment.