mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Initial support for Servlet 6.1
Closes gh-31159
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user