Closed arctic-alpaca closed 1 year ago
This does look like a bug. I'll look into it.
Seems it's not only an underscore that causes an issue, any character after the matching prefix causes a false positive in the check here.
Keeping this open until the fix is released.
Released in 0.7.0.
Hi,
I encountered this behaviour when working with axum. I'm not sure whether this is intended or not but for me it was unexpected.
This code returns an
MissingTrailingSlash
error instead of aNotFound
error:This seems to happen when adding two routes, one with an underscore at the same position where the other one has a slash.
I tried different combinations of routes and only the version described above returned an unintuitive error:
Cargo.toml: