Clarify non-specificity driven collisions.

This commit is contained in:
Sergio Benitez 2021-04-07 19:45:12 -07:00
parent 49b65c3ccc
commit b29b7bf413
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ fn paths_collide(route: &Route, other: &Route) -> bool {
fn formats_collide(route: &Route, other: &Route) -> bool {
// When matching against the `Accept` header, the client can always
// provide a media type that will cause a collision through
// non-specificity.
// non-specificity, i.e, `*/*` matches everything.
if !route.method.supports_payload() {
return true;
}