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:
parent
69db6d538b
commit
39fe99fb11
|
@ -1991,13 +1991,7 @@ fn actual_request_response(options: &Cors, origin: &str) -> Response {
|
||||||
pub fn catch_all_options_routes() -> Vec<rocket::Route> {
|
pub fn catch_all_options_routes() -> Vec<rocket::Route> {
|
||||||
vec![
|
vec![
|
||||||
rocket::Route::ranked(
|
rocket::Route::ranked(
|
||||||
isize::max_value(),
|
isize::MAX,
|
||||||
http::Method::Options,
|
|
||||||
"/",
|
|
||||||
CatchAllOptionsRouteHandler {},
|
|
||||||
),
|
|
||||||
rocket::Route::ranked(
|
|
||||||
isize::max_value(),
|
|
||||||
http::Method::Options,
|
http::Method::Options,
|
||||||
"/<catch_all_options_route..>",
|
"/<catch_all_options_route..>",
|
||||||
CatchAllOptionsRouteHandler {},
|
CatchAllOptionsRouteHandler {},
|
||||||
|
|
Loading…
Reference in New Issue