nit(chiauth): add trailing newline to error response

This commit is contained in:
AJ ONeal 2022-05-09 13:34:30 -06:00
parent c3402609b4
commit c529b415bc
No known key found for this signature in database
GPG Key ID: 562702827EF68D87
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ func NewTokenVerifier(opts VerificationParams) func(http.Handler) http.Handler {
inspected, err := libauth.VerifyJWT(token, opts.Issuers, r) inspected, err := libauth.VerifyJWT(token, opts.Issuers, r)
if nil != err { if nil != err {
w.WriteHeader(http.StatusBadRequest) w.WriteHeader(http.StatusBadRequest)
errmsg := "Invalid Token: " + err.Error() errmsg := "Invalid Token: " + err.Error() + "\n"
w.Write([]byte(errmsg)) w.Write([]byte(errmsg))
return return
} }