mirror of https://github.com/rwf2/Rocket.git
Clarify non-specificity driven collisions.
This commit is contained in:
parent
49b65c3ccc
commit
b29b7bf413
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue