Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Update TrustedHostMiddleware Documentation #11441

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

soulee-dev
Copy link

Summary

This PR updates the documentation for TrustedHostMiddleware to reflect the current code more accurately.

Changes

  1. TrustedHostMiddleware:
  • Added documentation for the www_redirect parameter. When set to True, this option redirects requests to non-www versions of allowed hosts to their www counterparts. This parameter defaults to True.

Related PR

encode/starlette#2572 (Merged)

@tiangolo
Copy link
Owner

📝 Docs preview for commit c94e31f at: https://4b7052da.fastapitiangolo.pages.dev

@tiangolo
Copy link
Owner

📝 Docs preview for commit ba3d693 at: https://788da276.fastapitiangolo.pages.dev

@alejsdev alejsdev added the docs Documentation about how to use FastAPI label Apr 18, 2024
@tiangolo
Copy link
Owner

📝 Docs preview for commit 62bc411 at: https://3aae0164.fastapitiangolo.pages.dev

@soulee-dev
Copy link
Author

@alejsdev Is there any steps that I have to do?

@tiangolo
Copy link
Owner

📝 Docs preview for commit c8d0158 at: https://8e94391e.fastapitiangolo.pages.dev

@tiangolo
Copy link
Owner

📝 Docs preview for commit d90a85a at: https://9846840b.fastapitiangolo.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation about how to use FastAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants