From 39fe99fb1170a751ed4ec76bb007b83ff368edc6 Mon Sep 17 00:00:00 2001 From: thanadolps Date: Sun, 25 Apr 2021 10:35:03 +0700 Subject: [PATCH] Remove colliding route in catch_all_options_routes() In rocket 0.5 "/" should match path "/" too hence the collision. --- src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7dda217..135b333 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1991,13 +1991,7 @@ fn actual_request_response(options: &Cors, origin: &str) -> Response { pub fn catch_all_options_routes() -> Vec { vec![ rocket::Route::ranked( - isize::max_value(), - http::Method::Options, - "/", - CatchAllOptionsRouteHandler {}, - ), - rocket::Route::ranked( - isize::max_value(), + isize::MAX, http::Method::Options, "/", CatchAllOptionsRouteHandler {},