Add content-type header to token response
This commit is contained in:
parent
95ee593dd8
commit
6517a38fc1
|
|
@ -545,6 +545,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
Scope: auth.Scope,
|
Scope: auth.Scope,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Add("Content-Type", "application/json")
|
||||||
enc := json.NewEncoder(w)
|
enc := json.NewEncoder(w)
|
||||||
err = enc.Encode(&res)
|
err = enc.Encode(&res)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user