aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-07-06 21:32:02 +0800
committeraltaf-creator <dev@altafcreator.com>2026-07-06 21:32:02 +0800
commitac812cad6313b4de06789ba958968804f5b48a0f (patch)
tree64e104a65d81fcd90f60a2a35c378f132b73ef8e
parent6d978a94cd24fcef435ad05cfc512a7da88a32dc (diff)
test again again
-rw-r--r--main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index 60c6df4..00805f2 100644
--- a/main.py
+++ b/main.py
@@ -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 + "/"))