Skip to content
Myr

Fixed OPTIONS regression preventing custom routing for this method

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/router/index.js+1 added-1 removed
194 unmodified lines
195 // match route196 route = self._match(req, i);197198 // implied OPTIONS199 if ('OPTIONS' == req.method) return self._options(req, res);199 if (!route && 'OPTIONS' == req.method) return self._options(req, res);200201 // no route202 if (!route) return next();203
180 unmodified lines