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:
parent
1d3be7cf60
commit
5c2fda6b4a
2
auth.go
2
auth.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue