Skip to content

Commit 31e01c4

Browse files
committed
fix: wrong handler call
1 parent 0aace26 commit 31e01c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/assets/custom_pages.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ type ErrorPageData struct {
4747

4848
// RenderErrorPage renders the error page to the response writer
4949
func RenderErrorPage(w http.ResponseWriter, code int, title, description string) {
50+
w.Header().Set("Content-Type", "text/html; charset=utf-8")
5051
w.WriteHeader(code)
51-
w.Header().Set("Content-Type", "text/html")
5252

5353
data := ErrorPageData{
5454
Code: code,
@@ -66,8 +66,8 @@ func RenderErrorPage(w http.ResponseWriter, code int, title, description string)
6666

6767
// RenderWelcomePage renders the welcome page
6868
func RenderWelcomePage(w http.ResponseWriter) {
69+
w.Header().Set("Content-Type", "text/html; charset=utf-8")
6970
w.WriteHeader(http.StatusOK)
70-
w.Header().Set("Content-Type", "text/html")
7171

7272
data := struct {
7373
FooterLink string

0 commit comments

Comments
 (0)