From c3450f4614b21cdb7f061936590d23ce2e9d30a5 Mon Sep 17 00:00:00 2001 From: Davide Maggio Date: Wed, 5 Aug 2020 10:48:03 +0200 Subject: [PATCH] chore: return text/plain header in auth response (#1051) --- http/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/auth.go b/http/auth.go index 41f0551e..5c47fcf1 100644 --- a/http/auth.go +++ b/http/auth.go @@ -189,7 +189,7 @@ func printToken(w http.ResponseWriter, _ *http.Request, d *data, user *users.Use 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 { return http.StatusInternalServerError, err }