1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-08-03 11:15:05 +00:00
actix-web/actix-files/src
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
..
error.rs rename to Files 2019-03-06 23:39:08 -08:00
lib.rs feat(files): add possibility to redirect to slash-ended path (#1134) 2019-10-14 21:23:15 +06:00
named.rs [actix-files] Allow user defined guards for NamedFile (actix#1113) (#1115) 2019-10-08 10:09:40 +06:00
range.rs nightly clippy warnings 2019-07-17 15:53:51 +06:00