Browse Source

Remove unnecessary change (passing default value of parameter)

pull/11441/head
Motov Yurii 2 weeks ago
committed by GitHub
parent
commit
95bb5dc6cb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs_src/advanced_middleware/tutorial002.py

4
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"]
)

Loading…
Cancel
Save