From 74b77679ed5b5cb69e0427a2677261e2dd821ce7 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Wed, 29 Dec 2021 15:37:07 +0300 Subject: [PATCH] fmt --- actix-files/CHANGES.md | 2 +- actix-files/src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);