Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Valid routes with invalid methods taking precedence over static files #370

Closed
ben-ng opened this Issue · 0 comments

1 participant

@ben-ng
Owner

If you have a wildcard route like

router.post('/*path(.:format)').to({controller:'mycontroller',action:'dosomething'});

All static files now fail to be served, because geddy returns a 405 error before checking if the route matched a static file. This is pretty unexpected behavior. I'm using a wildcard route to match all OPTIONS requests to an action on my controller and that breaks all my assets.

@ben-ng ben-ng referenced this issue from a commit in ben-ng/geddy
Ben Ng Fixes #370 02c4303
@ben-ng ben-ng referenced this issue from a commit in ben-ng/geddy
Ben Ng Fixes #370 6c855bc
@mde mde closed this in #372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.