This commit is contained in:
Ali MJ Al-Nasrawy 2021-12-29 15:37:07 +03:00
parent 0d823d74e0
commit 74b77679ed
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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);