Skip to content

Commit

Permalink
fix: exception mapper (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored May 29, 2024
1 parent 657444e commit db2211c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ default Response clientException(ClientWebApplicationException ex) {
return Response.status(400).build();
} else {
if (ex.getResponse().getMediaType() != null
&& ex.getResponse().getMediaType().toString().equals(APPLICATION_JSON)) {
&& ex.getResponse().getMediaType().toString().contains(APPLICATION_JSON)) {
return Response.status(ex.getResponse().getStatus())
.entity(map(ex.getResponse().readEntity(ProblemDetailResponse.class))).build();
} else {
Expand Down

0 comments on commit db2211c

Please sign in to comment.