diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |
