summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-07 01:45:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-07 01:45:14 +0200
commit7acb571327675acd9cf37daec08699db485b458d (patch)
treed25bb251bdb85c85cf02488f99039efa88f8fae3
parentb9adf8ce89d4bc1453d13d365bdee678a62406b1 (diff)
Remove redundant w.WriteHeader() call
-rw-r--r--main.go1
1 files changed, 0 insertions, 1 deletions
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)
}
}