Skip to content

Commit

Permalink
Fix ClassRoutingHandler not using sortedOriginalMediaTypes in else block
Browse files Browse the repository at this point in the history
  • Loading branch information
markusdlugi committed Mar 9, 2021
1 parent 88b28a4 commit b624e78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti
} else {
acceptsMediaTypes = Collections.singletonList(toMediaType(accepts));
}
if (MediaTypeHelper.getFirstMatch(Arrays.asList(target.value.getProduces().getSortedMediaTypes()),
if (MediaTypeHelper.getFirstMatch(Arrays.asList(target.value.getProduces().getSortedOriginalMediaTypes()),
acceptsMediaTypes) == null) {
throw new NotAcceptableException();
}
Expand Down

0 comments on commit b624e78

Please sign in to comment.