diff --git a/actix-files/CHANGES.md b/actix-files/CHANGES.md index 78da2688f..3e1590991 100644 --- a/actix-files/CHANGES.md +++ b/actix-files/CHANGES.md @@ -1,7 +1,7 @@ # Changes ## Unreleased - 2021-xx-xx -- `Files`: `%2F` in request URL path is now decoded to `/` and thus functions as a path separator. [#2398] +- `Files`: `%2F` in request URL path is now decoded to `/` and thus functions as a path separator. [#2398] - `Files`: Fixed a regression where `%25` in the URL path is not decoded to `%` in the file path. [#2398] - Minimum supported Rust version (MSRV) is now 1.54. diff --git a/actix-files/src/lib.rs b/actix-files/src/lib.rs index 8ae937fbc..4af28ca92 100644 --- a/actix-files/src/lib.rs +++ b/actix-files/src/lib.rs @@ -804,7 +804,9 @@ mod tests { assert_eq!(res.status(), StatusCode::OK); // `%2F` == `/` - let req = TestRequest::get().uri("/test/%2F..%2F..%2Ftests%2Ftest.binary").to_request(); + let req = TestRequest::get() + .uri("/test/%2F..%2F..%2Ftests%2Ftest.binary") + .to_request(); let res = test::call_service(&srv, req).await; assert_eq!(res.status(), StatusCode::OK);