diff --git a/starlette/middleware/trustedhost.py b/starlette/middleware/trustedhost.py index 536a1968..60a49933 100644 --- a/starlette/middleware/trustedhost.py +++ b/starlette/middleware/trustedhost.py @@ -39,7 +39,6 @@ class TrustedHostMiddleware: if found_www_redirect and self.www_redirect: url = URL(scope=scope) redirect_url = url.replace(netloc="www." + url.netloc) - print(redirect_url) return RedirectResponse(url=str(redirect_url)) return PlainTextResponse("Invalid host header", status_code=400)