investigate why Http Server Tck ErrorHandlerTest fails
Closed this issue · 3 comments
sdelamo commented
timyates commented
For all 3 failures here, it seems the @Produces
is ignored for the @Error
handler methods, ie:
@Error
@Produces({"text/plain"})
@Status(HttpStatus.OK)
String localHandler(AnotherException throwable) {
return throwable.getMessage();
}
or
@Error
@Produces(io.micronaut.http.MediaType.TEXT_PLAIN)
@Status(HttpStatus.OK)
String localHandler(AnotherException throwable) {
return throwable.getMessage();
}
Has the correct response, but it isn't text-plain
sdelamo commented
Right, that looks like a bug.