Add Content Type to print jwt; #170

pull/185/head
Henrique Dias 2017-07-29 14:19:09 +01:00
parent aa6631c408
commit 4df76b79c7
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
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 return http.StatusInternalServerError, err
} }
// Writes the token. // Writes the token.
w.Header().Set("Content-Type", "cty")
w.Write([]byte(string)) w.Write([]byte(string))
return 0, nil return 0, nil
} }