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

@ -1,3 +1,31 @@
## 0.7.15
* The `' '` character is not percent decoded anymore before matching routes. If you need to use it in
your routes, you should use `%20`.
instead of
```rust
fn main() {
let app = App::new().resource("/my index", |r| {
r.method(http::Method::GET)
.with(index);
});
}
```
use
```rust
fn main() {
let app = App::new().resource("/my%20index", |r| {
r.method(http::Method::GET)
.with(index);
});
}
```
## 0.7.4
* `Route::with_config()`/`Route::with_async_config()` always passes configuration objects as tuple