mirror of
https://github.com/actix/actix-web.git
synced 2024-12-20 23:26:44 +00:00
a48e616def
When accessing to a folder without a final slash, the index file will be loaded ok, but if it has references (like a css or an image in an html file) these resources won't be loaded correctly if they are using relative paths. In order to solve this, this PR adds the possibility to detect folders without a final slash and make a 302 redirect to mitigate this issue. The behavior is off by default. We're adding a new method called `redirect_to_slash_directory` which can be used to enable this behavior. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
CHANGES.md | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
Static files support for actix web
Documentation & community resources
- User Guide
- API Documentation
- Chat on gitter
- Cargo package: actix-files
- Minimum supported Rust version: 1.33 or later