mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-04 00:09:01 +00:00
Auto configure CharacterEncodingFilter
Provide a default UTF-8 encoding for HTTP requests and responses unless specified otherwise. Fixes gh-1182
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ public class SampleWebStaticApplicationTests {
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
assertTrue("Wrong body:\n" + entity.getBody(), entity.getBody().contains("body"));
|
||||
assertEquals("Wrong content type:\n" + entity.getHeaders().getContentType(),
|
||||
MediaType.valueOf("text/css"), entity.getHeaders().getContentType());
|
||||
MediaType.valueOf("text/css;charset=UTF-8"), entity.getHeaders().getContentType());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user