diff --git a/starlette/routing.py b/starlette/routing.py index 8b72584ef1..8d870207fc 100644 --- a/starlette/routing.py +++ b/starlette/routing.py @@ -769,7 +769,6 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: root_path = scope.get("current_root_path", scope.get("root_path", "")) path = scope.get("current_path", re.sub(r"^" + root_path, "", scope["path"])) - print(root_path, path) if scope["type"] == "http" and self.redirect_slashes and path != "/": redirect_scope = dict(scope) if path.endswith("/"): @@ -781,7 +780,6 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: for route in self.routes: match, child_scope = route.matches(redirect_scope) - print(match, child_scope) if match != Match.NONE: redirect_url = URL(scope=redirect_scope) response = RedirectResponse(url=str(redirect_url))