mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-11 03:59:05 +00:00
51ed332127
This commit modifies request routing in a backwards incompatible manner. The change is summarized as: trailing slashes are now significant and never transparently disregarded. This has the following implications, all representing behavior that differs from that before this change: * Route URIs with trailing slashes (`/foo/`, `/<a>/`) are legal. * A request `/foo/` is routed to route `/foo/` but not `/foo`. * Similarly, a request `/bar/` is routed to `/<a>/` but not `/<a>`. * A request `/bar/foo` is not routed to `/<a>/<b>/<c..>`. A new `AdHoc::uri_normalizer()` fairing was added that recovers the previous behavior. In addition to the above, the `Options::NormalizeDirs` `FileServer` option is now enabled by default to remain consistent with the above changes and reduce breaking changes at the `FileServer` level. |
||
---|---|---|
.. | ||
async-entry.rs | ||
async-entry.stderr | ||
bad-ignored-segments.rs | ||
bad-ignored-segments.stderr | ||
catch_type_errors.rs | ||
catch_type_errors.stderr | ||
catch.rs | ||
catch.stderr | ||
catchers.rs | ||
catchers.stderr | ||
from_form_field.rs | ||
from_form_field.stderr | ||
from_form_type_errors.rs | ||
from_form_type_errors.stderr | ||
from_form.rs | ||
from_form.stderr | ||
responder-types.rs | ||
responder-types.stderr | ||
responder.rs | ||
responder.stderr | ||
route-attribute-general-syntax.rs | ||
route-attribute-general-syntax.stderr | ||
route-path-bad-syntax.rs | ||
route-path-bad-syntax.stderr | ||
route-type-errors.rs | ||
route-type-errors.stderr | ||
route-warnings.rs | ||
route-warnings.stderr | ||
routes.rs | ||
routes.stderr | ||
typed-uri-bad-type.rs | ||
typed-uri-bad-type.stderr | ||
typed-uris-bad-params.rs | ||
typed-uris-bad-params.stderr | ||
typed-uris-invalid-syntax.rs | ||
typed-uris-invalid-syntax.stderr | ||
uri_display_type_errors.rs | ||
uri_display_type_errors.stderr | ||
uri_display.rs | ||
uri_display.stderr |