Adding Content-Type header to the OAuth complete endpoint (#10961)

Этот коммит содержится в:
Jesús Espino
2019-05-30 19:38:22 +02:00
коммит произвёл Harrison Healey
родитель 4de81fa94c
Коммит 17e6297a15

Просмотреть файл

@@ -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)
}