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)