diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -46,6 +46,7 @@ with open("index.html") as f: async def force_trailing_slash(request: fastapi.Request, call_next): path = request.url.path print("urlpath", path) + print("headers", request.headers) if not path.endswith("/") and not Path(path).suffix: new_url = str(request.url.replace(path=path + "/")) |
