From 53d4052446bb5efde0a27959347a27482cc5ceb6 Mon Sep 17 00:00:00 2001 From: Kai Date: Mon, 16 Feb 2026 15:11:33 +0100 Subject: [PATCH] =?UTF-8?q?HTTP=20Content-Type=20f=C3=BCr=20HTML-Seiten=20?= =?UTF-8?q?explizit=20setzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/server/handlers_pages.go | 1 + 1 file changed, 1 insertion(+) 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) }