From 3bfb73d3b9c54da7db17219bce042a2ba6658a14 Mon Sep 17 00:00:00 2001 From: Aneurin Barker Snook Date: Mon, 30 Mar 2026 22:04:50 +0100 Subject: [PATCH] fix unsent header --- internal/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http.go b/internal/http.go index 323f910..092eca9 100644 --- a/internal/http.go +++ b/internal/http.go @@ -16,8 +16,8 @@ func (srv *HttpServer) ServeHTTP(w http.ResponseWriter, req *http.Request) { redirect := srv.Redirects.Find(req.URL.Path) if redirect != nil { srv.Log.Info().Int("result", redirect.StatusCode).Msg(req.URL.Path) - w.WriteHeader(redirect.StatusCode) w.Header().Add("location", redirect.To) + w.WriteHeader(redirect.StatusCode) } else { statusCode := 404 srv.Log.Error().Int("result", statusCode).Msg(req.URL.Path)