Update auth.go

This commit is contained in:
Davide Maggio 2020-07-29 22:48:24 +02:00 committed by GitHub
parent a2fb499a20
commit 2b1326066d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ func printToken(w http.ResponseWriter, _ *http.Request, d *data, user *users.Use
return http.StatusInternalServerError, err return http.StatusInternalServerError, err
} }
w.Header().Set("Content-Type", "cty") w.Header().Set("Content-Type", "text/plain")
if _, err := w.Write([]byte(signed)); err != nil { if _, err := w.Write([]byte(signed)); err != nil {
return http.StatusInternalServerError, err return http.StatusInternalServerError, err
} }