From 4df76b79c7bd18d45cd15b63fb65085745568b21 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 29 Jul 2017 14:19:09 +0100 Subject: [PATCH] Add Content Type to print jwt; #170 --- auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth.go b/auth.go index 54740ef5..58b40e39 100644 --- a/auth.go +++ b/auth.go @@ -84,7 +84,9 @@ func printToken(c *RequestContext, w http.ResponseWriter) (int, error) { return http.StatusInternalServerError, err } + // Writes the token. + w.Header().Set("Content-Type", "cty") w.Write([]byte(string)) return 0, nil }