Remove colliding route in catch_all_options_routes()

In rocket 0.5 "/<catch_all_options_route..>" should match path "/" too hence the collision.
This commit is contained in:
thanadolps 2021-04-25 10:35:03 +07:00
parent 69db6d538b
commit 39fe99fb11
1 changed files with 1 additions and 7 deletions

View File

@ -1991,13 +1991,7 @@ fn actual_request_response(options: &Cors, origin: &str) -> Response {
pub fn catch_all_options_routes() -> Vec<rocket::Route> {
vec![
rocket::Route::ranked(
isize::max_value(),
http::Method::Options,
"/",
CatchAllOptionsRouteHandler {},
),
rocket::Route::ranked(
isize::max_value(),
isize::MAX,
http::Method::Options,
"/<catch_all_options_route..>",
CatchAllOptionsRouteHandler {},