rotty3000 commented on a change in pull request #4: GERONIMO-6757 if we can
avoid CDI.current by injecting, please do! otherwise go ahead.
URL: https://github.com/apache/geronimo-jwt-auth/pull/4#discussion_r355230471
##########
File path:
src/main/java/org/apache/geronimo/microprofile/impl/jwtauth/jaxrs/GeronimoJwtAuthExceptionMapper.java
##########
@@ -36,7 +34,6 @@
public Response toResponse(final JwtException e) {
return Response.status(e.getStatus())
.entity(builder.toObject(e))
- .type(APPLICATION_JSON_TYPE)
Review comment:
I can live without it. But the response is wrong when using plain text like
in the TCK tests. I guess you are simply not getting an error in that mode.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services