mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
MIME type parameter names are case-insensitive, but MimeTypeParser accumulates parameters in a case-sensitive LinkedHashMap. As a result, duplicate parameters differing only in case (such as "charset" and "CHARSET") were not rejected and were silently collapsed to the last value by the case-insensitive parameter map of MimeType. Accumulate parameters in a LinkedCaseInsensitiveMap so that duplicates differing only in case map to the same key and are rejected consistently with exact duplicates. Signed-off-by: junhyeong9812 <pickjog@gmail.com> Co-authored-by: Yash <190389954+yashsiwacha@users.noreply.github.com>