Skip to content

Commit

Permalink
Merge pull request #15569 from markusdlugi/master
Browse files Browse the repository at this point in the history
Use sortedOriginalMediaTypes in ClassRoutingHandler
  • Loading branch information
geoand authored Mar 9, 2021
2 parents 7af6bbc + b624e78 commit cb2799f
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 cb2799f

Please sign in to comment.