mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
3ac7f83900
Prior to this commit, `HttpMessageConverters` would assert that the given converter in `withXmlConverter` has a media type that is equal to "application/xml" in its list of supported converters. This approach would not work if the given converter supports "application/xml;charset=UTF-8" because of the strict equal check being performed. This commit ensures that we only consider the type and subtype of the considered media types when comparing, removing the parameters from the picture. Fixes gh-35801