mirror of https://github.com/encode/starlette.git
delete print statement (#227)
This commit is contained in:
parent
9fa4b56030
commit
b3a1bef1a7
|
@ -39,7 +39,6 @@ class TrustedHostMiddleware:
|
||||||
if found_www_redirect and self.www_redirect:
|
if found_www_redirect and self.www_redirect:
|
||||||
url = URL(scope=scope)
|
url = URL(scope=scope)
|
||||||
redirect_url = url.replace(netloc="www." + url.netloc)
|
redirect_url = url.replace(netloc="www." + url.netloc)
|
||||||
print(redirect_url)
|
|
||||||
return RedirectResponse(url=str(redirect_url))
|
return RedirectResponse(url=str(redirect_url))
|
||||||
return PlainTextResponse("Invalid host header", status_code=400)
|
return PlainTextResponse("Invalid host header", status_code=400)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue