diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-07-06 21:32:02 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-07-06 21:32:02 +0800 |
| commit | ac812cad6313b4de06789ba958968804f5b48a0f (patch) | |
| tree | 64e104a65d81fcd90f60a2a35c378f132b73ef8e | |
| parent | 6d978a94cd24fcef435ad05cfc512a7da88a32dc (diff) | |
test again again
| -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 + "/")) |
