Skip to content
Myr

misc refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent e9cd82b · Browse files · 1 file+0 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−6 removed

  • other:+0 added−6 removed

1 file+0 added−6 removed

modified:lib/router/index.js-6 removed
39 unmodified lines
40 this.params = {};41 this._params = [];42 this.caseSensitive = options.caseSensitive;43 this.strict = options.strict;4444 this.middleware = function router(req, res, next){45 self._dispatch(req, res, next);46 };47}
191 unmodified lines
239 , i = i || 0240 , route;241242 // HEAD support244 // TODO: clean this up243 if (!head && 'head' == method) {246 // attempt lookup244 route = this.match(req, i, true);245 if (route) return route;249250 // default to GET as res.render() / res.send()251 // etc support HEAD246 method = 'get';247 }248249 // routes for this method
41 unmodified lines