Fix condition for "Too many elements" in MimeTypeUtils.sortBySpecificity()
See gh-31254
See gh-31769
Closes gh-31773
(cherry picked from commit 7b95bd72f7)
This commit is contained in:
@@ -362,7 +362,7 @@ public abstract class MimeTypeUtils {
|
||||
*/
|
||||
public static <T extends MimeType> void sortBySpecificity(List<T> mimeTypes) {
|
||||
Assert.notNull(mimeTypes, "'mimeTypes' must not be null");
|
||||
if (mimeTypes.size() >= 50) {
|
||||
if (mimeTypes.size() > 50) {
|
||||
throw new InvalidMimeTypeException(mimeTypes.toString(), "Too many elements");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user