diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 7dc90c1..881b33d 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -217,6 +217,7 @@ func Error(w http.ResponseWriter, r *http.Request, code int, reason string) { return } + w.WriteHeader(code) web.ErrorXXX(utils.MainSite(r.Host), code, reason, w) }