From 17e6297a1523d81bf6596bacaadfa7410d36a71b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 30 May 2019 19:38:22 +0200 Subject: [PATCH] Adding Content-Type header to the OAuth complete endpoint (#10961) --- api4/oauth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api4/oauth.go b/api4/oauth.go index 7d1fa962fd..e0d79d2f5a 100644 --- a/api4/oauth.go +++ b/api4/oauth.go @@ -538,6 +538,7 @@ func completeOAuth(c *Context, w http.ResponseWriter, r *http.Request) { return } + w.Header().Set("Content-Type", "text/html; charset=utf-8") http.Redirect(w, r, redirectUrl, http.StatusTemporaryRedirect) }