From 7acb571327675acd9cf37daec08699db485b458d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 7 Aug 2024 01:45:14 +0200 Subject: Remove redundant w.WriteHeader() call --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 0597e83..ba475fd 100644 --- a/main.go +++ b/main.go @@ -52,7 +52,6 @@ func finalHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) fmt.Fprintln(w, p.T("Page not found")) } else { - w.WriteHeader(http.StatusOK) templates.Root(nil, c).Render(r.Context(), w) } } -- cgit v1.2.3