Add content-type header to token response

This commit is contained in:
Peter Stuifzand 2018-07-15 00:02:33 +02:00
parent 95ee593dd8
commit 6517a38fc1

View File

@ -545,6 +545,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Scope: auth.Scope,
}
w.Header().Add("Content-Type", "application/json")
enc := json.NewEncoder(w)
err = enc.Encode(&res)
if err != nil {