You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requesting /path/foo/ (note trailing slash that is not in the route) should match the wildcard route /path/*rest, but instead, the fallback route is ran. Commenting out the /path/foo route causes the wildcard route to be taken instead of the fallback.
The text was updated successfully, but these errors were encountered:
May be related - if there is a route with a normal parameter at the end of it, and the request path is any descendant of that route, the fallback will be taken, even if a wildcard matches:
This seems like it's probably a bug in matchit, which axum uses for routing. It would be nice if somebody could try reproducing with just that, and reporting a bug there if reproduction is successful. (and please link to the new issue here then)
Bug Report
Version
Axum 0.6.18
Platform
Arch Linux x86_64
Description
Example program:
Requesting
/path/foo/
(note trailing slash that is not in the route) should match the wildcard route/path/*rest
, but instead, the fallback route is ran. Commenting out the/path/foo
route causes the wildcard route to be taken instead of the fallback.The text was updated successfully, but these errors were encountered: