Skip to content
Myr

misc

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 9be5992 · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:lib/router/index.js+6 added
268 unmodified lines
269function match(req, routes, i) {270 var captures271 , method = req.method272 , i = i || 0;273274 // pass HEAD to GET routes275 if ('HEAD' == method) method = 'GET';276277 // routes for this method278 if (routes = routes[method]) {279 var url = parse(req.url)280 , pathname = url.pathname;281282 // matching routes283 for (var len = routes.length; i < len; ++i) {284 var route = routes[i]285 , fn = route.callback286 , path = route.regexp
21 unmodified lines