Initial support for Servlet 6.1

Closes gh-31159
This commit is contained in:
Juergen Hoeller
2024-02-28 18:54:36 +01:00
parent 570c5b34e6
commit cfb29db278
4 changed files with 23 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ class MockHttpServletResponseTests {
response.setCharacterEncoding("UTF-8");
assertThat(response.getContentType()).isEqualTo("test/plain;charset=UTF-8");
assertThat(response.getHeader(CONTENT_TYPE)).isEqualTo("test/plain;charset=UTF-8");
response.setCharacterEncoding(null);
response.setCharacterEncoding((String) null);
assertThat(response.getContentType()).isEqualTo("test/plain");
assertThat(response.getHeader(CONTENT_TYPE)).isEqualTo("test/plain");
assertThat(response.getCharacterEncoding()).isEqualTo(WebUtils.DEFAULT_CHARACTER_ENCODING);