https://bz.apache.org/bugzilla/show_bug.cgi?id=69442

--- Comment #7 from Chen Jp <ch...@msn.com> ---
org.springframework.util.MimeType -- parse type and subtype in lowercase
internally.
```java
        public MimeType(String type, String subtype, @Nullable Map<String,
String> parameters) {
                Assert.hasLength(type, "'type' must not be empty");
                Assert.hasLength(subtype, "'subtype' must not be empty");
                checkToken(type);
                checkToken(subtype);
                this.type = type.toLowerCase(Locale.ROOT);
                this.subtype = subtype.toLowerCase(Locale.ROOT);
                if (!CollectionUtils.isEmpty(parameters)) {
                        Map<String, String> map = new
LinkedCaseInsensitiveMap<>(parameters.size(), Locale.ROOT);
                        parameters.forEach((parameter, value) -> {
                                checkParameters(parameter, value);
                                map.put(parameter, value);
                        });
                        this.parameters = Collections.unmodifiableMap(map);
                }
                else {
                        this.parameters = Collections.emptyMap();
                }
        }
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to