Skip to content

Conversation

francesco-gaglione
Copy link

PR Type

Close #3543

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

@robjtede
Copy link
Member

robjtede commented Sep 4, 2025

I agree Found is less appropriate but permanent redirects are a risky default for a framework due to their caching implications.

I'd accept a change to TemporaryRedirect or allow a customization.

@francesco-gaglione
Copy link
Author

@robjtede if customization is prefered I can try to work on it. I wa thinking to change redirect_to_slash bollean to an Option containint the redirect mode. What do you think?
I can work on it on a different PR if prefered leaving here the TemporaryRedirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Files::redirect_to_slash_directory() should use HTTP status code 308
2 participants