1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

decode reserved characters when extracting path with configuration (#577)

* decode reserved characters when extracting path with configuration

* remove useless clone

* add a method to get decoded parameter by name
This commit is contained in:
François
2018-11-24 14:54:11 +01:00
committed by Douman
parent 9aab382ea8
commit c386353337
7 changed files with 234 additions and 79 deletions

View File

@ -672,6 +672,6 @@ fn test_unsafe_path_route() {
let bytes = srv.execute(response.body()).unwrap();
assert_eq!(
bytes,
Bytes::from_static(b"success: http:%2F%2Fexample.com")
Bytes::from_static(b"success: http%3A%2F%2Fexample.com")
);
}