Merge branch '2.5.x' into 2.6.x
Closes gh-30541
This commit is contained in:
@@ -267,6 +267,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
|
||||
private void resetDefaultLocaleMapping(TomcatEmbeddedContext context) {
|
||||
context.addLocaleEncodingMappingParameter(Locale.ENGLISH.toString(), DEFAULT_CHARSET.displayName());
|
||||
context.addLocaleEncodingMappingParameter(Locale.FRENCH.toString(), DEFAULT_CHARSET.displayName());
|
||||
context.addLocaleEncodingMappingParameter(Locale.JAPANESE.toString(), DEFAULT_CHARSET.displayName());
|
||||
}
|
||||
|
||||
private void addLocaleMappings(TomcatEmbeddedContext context) {
|
||||
|
||||
@@ -411,6 +411,7 @@ class TomcatServletWebServerFactoryTests extends AbstractServletWebServerFactory
|
||||
// override defaults, see org.apache.catalina.util.CharsetMapperDefault.properties
|
||||
assertThat(getCharset(Locale.ENGLISH)).isEqualTo(StandardCharsets.UTF_8);
|
||||
assertThat(getCharset(Locale.FRENCH)).isEqualTo(StandardCharsets.UTF_8);
|
||||
assertThat(getCharset(Locale.JAPANESE)).isEqualTo(StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user