Skip to content

Commit

Permalink
Adjust to match the order of message converters(see spring-projects#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
scruel committed Nov 24, 2021
1 parent 259bcd6 commit c1d9d09
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -235,8 +235,8 @@ protected <T> void writeWithMessageConverters(@Nullable T value, MethodParameter
"No converter found for return value of type: " + valueType);
}
List<MediaType> mediaTypesToUse = new ArrayList<>();
for (MediaType requestedType : acceptableTypes) {
for (MediaType producibleType : producibleTypes) {
for (MediaType producibleType : producibleTypes) {
for (MediaType requestedType : acceptableTypes) {
if (requestedType.isCompatibleWith(producibleType)) {
mediaTypesToUse.add(getMostSpecificMediaType(requestedType, producibleType));
}
Expand Down

0 comments on commit c1d9d09

Please sign in to comment.