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:
@ -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")
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user