From b3a1bef1a7e31edb5eb450276cf7a831134f596f Mon Sep 17 00:00:00 2001 From: Alexander Botello Date: Wed, 21 Nov 2018 10:25:45 -0600 Subject: [PATCH] delete print statement (#227) --- starlette/middleware/trustedhost.py | 1 - 1 file changed, 1 deletion(-) 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)