1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-20 23:26:44 +00:00
actix-web/actix-files
Roberto Huertas a48e616def feat(files): add possibility to redirect to slash-ended path (#1134)
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.
2019-10-14 21:23:15 +06:00
..
src feat(files): add possibility to redirect to slash-ended path (#1134) 2019-10-14 21:23:15 +06:00
tests rename to Files 2019-03-06 23:39:08 -08:00
Cargo.toml prepare actix-files release 2019-10-08 10:13:16 +06:00
CHANGES.md feat(files): add possibility to redirect to slash-ended path (#1134) 2019-10-14 21:23:15 +06:00
LICENSE-APACHE add license files 2019-06-01 17:25:29 +06:00
LICENSE-MIT add license files 2019-06-01 17:25:29 +06:00
README.md update readmes 2019-04-29 20:47:21 -07:00

Static files support for actix web Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

Documentation & community resources