1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-12 10:19:36 +00:00
actix-web/actix-files/CHANGES.md
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

1.1 KiB

Changes

[0.1.6] - TBD

  • Add option to redirect to a slash-ended path Files #1132

[0.1.5] - 2019-10-08

  • Bump up mime_guess crate version to 2.0.1

  • Bump up percent-encoding crate version to 2.1

  • Allow user defined request guards for Files #1113

[0.1.4] - 2019-07-20

  • Allow to disable Content-Disposition header #686

[0.1.3] - 2019-06-28

  • Do not set Content-Length header, let actix-http set it #930

[0.1.2] - 2019-06-13

  • Content-Length is 0 for NamedFile HEAD request #914

  • Fix ring dependency from actix-web default features for #741

[0.1.1] - 2019-06-01

  • Static files are incorrectly served as both chunked and with length #812

[0.1.0] - 2019-05-25

  • NamedFile last-modified check always fails due to nano-seconds in file modified date #820

[0.1.0-beta.4] - 2019-05-12

  • Update actix-web to beta.4

[0.1.0-beta.1] - 2019-04-20

  • Update actix-web to beta.1

[0.1.0-alpha.6] - 2019-04-14

  • Update actix-web to alpha6

[0.1.0-alpha.4] - 2019-04-08

  • Update actix-web to alpha4

[0.1.0-alpha.2] - 2019-04-02

  • Add default handler support

[0.1.0-alpha.1] - 2019-03-28

  • Initial impl