aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-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 + "/"))