From b513a5ff1d5583cf89fed8497bf33b439f832489 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 5 Aug 2023 04:54:52 +0400 Subject: [PATCH] Found that in an Error() func status code wasn't set. Fixed that. --- internal/http/handlers.go | 1 + 1 file changed, 1 insertion(+) 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) }