diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 01:45:14 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-07 01:45:14 +0200 |
commit | 7acb571327675acd9cf37daec08699db485b458d (patch) | |
tree | d25bb251bdb85c85cf02488f99039efa88f8fae3 | |
parent | b9adf8ce89d4bc1453d13d365bdee678a62406b1 (diff) |
Remove redundant w.WriteHeader() call
-rw-r--r-- | main.go | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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) } } |