mirror of https://github.com/rwf2/Rocket.git
ac0a77bae2
The net effect of this commit is three-fold: * A request to `/` now matches `/<a>`. `/foo/` matches `/<a>/<b>`. * A segment matched to a dynamic parameter may be empty. * A request to `/foo/` no longer matches `/foo` or `/<a>`. Instead, such a request would match `/foo/<a>` or `/foo/`. The `&str` and `String` parameter guards were updated to reflect this change: they now error, with a newly introduced error type `Empty` in the `rocket::error` module, when the parameter is empty. As this was the only built-in parameter guard that would be effected by this change (all other guards already required nonempty parameters to succeed), the majority of applications will see no effect as a result. For applications wanting the previous functionality, a new `AdHoc::uri_normalizer()` fairing was introduced. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |