Browse Source
Remove unnecessary change (passing default value of parameter)
pull/11441/head
Motov Yurii
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
3 deletions
-
docs_src/advanced_middleware/tutorial002.py
|
|
@ -4,9 +4,7 @@ from fastapi.middleware.trustedhost import TrustedHostMiddleware |
|
|
|
app = FastAPI() |
|
|
|
|
|
|
|
app.add_middleware( |
|
|
|
TrustedHostMiddleware, |
|
|
|
allowed_hosts=["example.com", "*.example.com"], |
|
|
|
www_redirect=True, |
|
|
|
TrustedHostMiddleware, allowed_hosts=["example.com", "*.example.com"] |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|