From a12cf549cf0dc394189f7a37f090bd3eebbca8ca Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 28 Aug 2017 10:04:52 -0400 Subject: [PATCH] Set charset for OAuth2 authorize page (#7304) --- api4/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api4/oauth.go b/api4/oauth.go index c1aa49df431..c3586bbdf72 100644 --- a/api4/oauth.go +++ b/api4/oauth.go @@ -321,7 +321,7 @@ func authorizeOAuthPage(c *Context, w http.ResponseWriter, r *http.Request) { w.Header().Set("X-Frame-Options", "SAMEORIGIN") w.Header().Set("Content-Security-Policy", "frame-ancestors 'self'") - w.Header().Set("Content-Type", "text/html") + w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Cache-Control", "no-cache, max-age=31556926, public") staticDir, _ := utils.FindDir(model.CLIENT_DIR)