From a12cf549cf0dc394189f7a37f090bd3eebbca8ca Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 28 Aug 2017 10:04:52 -0400 Subject: Set charset for OAuth2 authorize page (#7304) --- api4/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api4') diff --git a/api4/oauth.go b/api4/oauth.go index c1aa49df4..c3586bbdf 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) -- cgit v1.2.3-1-g7c22