Skip to content
Myr

rename matchReq -> matchRequest

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 e770b67 · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:lib/router/index.js+4 added-4 removed
100 unmodified lines
101 pass(req._route_index + 1, err);102 }103104 // match route105 req.route = route = self.matchReq(req, i);105 req.route = route = self.matchRequest(req, i);106107 // implied OPTIONS108 if (!route && 'OPTIONS' == req.method) return self._options(req, res);109
108 unmodified lines
218 * @return {Route}219 * @api private220 */221222Router.prototype.matchReq = function(req, i, head){222Router.prototype.matchRequest = function(req, i, head){223 var method = req.method.toLowerCase()224 , url = parse(req)225 , path = url.pathname226 , routes = this.map
1 unmodified line
228 , route;229230 // HEAD support231 if (!head && 'head' == method) {232 route = this.matchReq(req, i, true);232 route = this.matchRequest(req, i, true);233 if (route) return route;234 method = 'get';235 }236
25 unmodified lines
262263Router.prototype.match = function(method, url, i, head){264 method = method.toLowerCase(); 265 var req = { method: method, url: url };266 return this.matchReq(req, i, head);266 return this.matchRequest(req, i, head);267};268269/**270 * Route `method`, `path`, and one or more callbacks.
26 unmodified lines