Add Content Type to print jwt; #170

This commit is contained in:
Henrique Dias
2017-07-29 14:19:09 +01:00
parent aa6631c408
commit 4df76b79c7

View File

@@ -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
}