Skip to content

Commit

Permalink
Remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Nov 30, 2023
1 parent ae8309b commit 6ae76f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions starlette/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("/"):
Expand All @@ -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))
Expand Down

0 comments on commit 6ae76f3

Please sign in to comment.