HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Reset the request parameters after a constraints check
A callable object passed as a constraint for a route may access the request parameters as part of its check. This causes the combined parameters hash to be cached in the environment hash. If the constraint fails then any subsequent access of the request parameters will be against that stale hash. To fix this we delete the cache after every call to `matches?`. This may have a negative performance impact if the contraint wraps a large number of routes as the parameters hash is built by merging GET, POST and path parameters. Fixes #2510.
- Loading branch information...
Showing with 25 additions and 0 deletions.