aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index 7009339..2ac0118 100644
--- a/main.py
+++ b/main.py
@@ -48,6 +48,7 @@ async def force_trailing_slash(request: fastapi.Request, call_next):
if not path.endswith("/") and not Path(path).suffix:
new_url = str(request.url.replace(path=path + "/"))
+ print("redirect to", new_url)
return fastapi.responses.RedirectResponse(url=new_url, status_code=301)
response = await call_next(request)