Skip to content

Commit

Permalink
Set charset for OAuth2 authorize page (mattermost#7304)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander authored and hmhealey committed Aug 28, 2017
1 parent f9837c3 commit a12cf54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api4/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a12cf54

Please sign in to comment.