diff --git a/src/main/java/org/tkit/onecx/tenant/bff/rs/mappers/ExceptionMapper.java b/src/main/java/org/tkit/onecx/tenant/bff/rs/mappers/ExceptionMapper.java index 690d6c5..fc6b173 100644 --- a/src/main/java/org/tkit/onecx/tenant/bff/rs/mappers/ExceptionMapper.java +++ b/src/main/java/org/tkit/onecx/tenant/bff/rs/mappers/ExceptionMapper.java @@ -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 {