From 9a232819a8947ee3a89b13e9c97834ca54e66ff2 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Thu, 23 Oct 2025 20:26:34 +0200 Subject: [PATCH] Handle HEAD requests with static router --- server/internal/app/routes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/internal/app/routes.go b/server/internal/app/routes.go index 4b1d38e..cca601f 100644 --- a/server/internal/app/routes.go +++ b/server/internal/app/routes.go @@ -152,7 +152,9 @@ func setupRouter(o Options) *chi.Mux { }) // Handle all other routes with static file server - r.Get("/*", handlers.NewStaticHandler(o.Config.StaticPath).ServeHTTP) + staticHandler := handlers.NewStaticHandler(o.Config.StaticPath) + r.Get("/*", staticHandler.ServeHTTP) + r.Head("/*", staticHandler.ServeHTTP) return r }