From 77d001db4a6dfd7b232c4b08b08842379cde739d Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 6 Jul 2026 21:27:00 +0800 Subject: check redir --- main.py | 1 + 1 file changed, 1 insertion(+) (limited to 'main.py') 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) -- cgit v1.2.3