summaryrefslogtreecommitdiffstats
path: root/api4/oauth.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-08-28 10:04:52 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-08-28 10:04:52 -0400
commita12cf549cf0dc394189f7a37f090bd3eebbca8ca (patch)
tree050b333da7b0c8339baa761f48e2ad9d4e94b26f /api4/oauth.go
parentf9837c3ac0c7f611363250684d85be5403a9aa10 (diff)
downloadchat-a12cf549cf0dc394189f7a37f090bd3eebbca8ca.tar.gz
chat-a12cf549cf0dc394189f7a37f090bd3eebbca8ca.tar.bz2
chat-a12cf549cf0dc394189f7a37f090bd3eebbca8ca.zip
Set charset for OAuth2 authorize page (#7304)
Diffstat (limited to 'api4/oauth.go')
-rw-r--r--api4/oauth.go2
1 files changed, 1 insertions, 1 deletions
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)