Add Content Type to print jwt; #170

Former-commit-id: 133e076b5d480db7529acf2ff21b7e6ae9426b68 [formerly e5401526831ca33d37d0f69598d174383eb96f02] [formerly 85f1d51200d8b533e3e38b486ca0313671d3e2d3 [formerly 4df76b79c7]]
Former-commit-id: bd2eb54eb6f7ae863c1e73181d27bbb7be7b2e43 [formerly bad56e0155cf17d17052e02ef91913b487914845]
Former-commit-id: 45f136c96ad024186a51c0285fbe7f5557877ad0
This commit is contained in:
Henrique Dias 2017-07-29 14:19:09 +01:00
parent 1d3be7cf60
commit 5c2fda6b4a
1 changed files with 2 additions and 0 deletions

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
}