diff --git a/cmd/server/handlers_pages.go b/cmd/server/handlers_pages.go index 4e43f75..338cb71 100644 --- a/cmd/server/handlers_pages.go +++ b/cmd/server/handlers_pages.go @@ -11,6 +11,7 @@ func (a *App) renderTemplate(w http.ResponseWriter, path string, data any) { http.Error(w, "template parse failed", http.StatusInternalServerError) return } + w.Header().Set("Content-Type", "text/html; charset=utf-8") if err := tmpl.Execute(w, data); err != nil { http.Error(w, "template render failed", http.StatusInternalServerError) }