From 849c988d2d416195145b0f6a49398cc283655568 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 20 Sep 2026 00:43:20 +0800 Subject: allow HEAD requests --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 4669819..2c88f5e 100644 --- a/main.py +++ b/main.py @@ -57,7 +57,7 @@ async def force_trailing_slash(request: fastapi.Request, call_next): return response -@app.get("/{path:path}") +@app.api_route("/{path:path}", methods=["GET", "HEAD"]) def folder(path: str): target_path = (FOLDER_PATH / path).resolve() -- cgit v1.2.3