From e8e728106e87be40cf2c5aff3cc296c8e42ce295 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 3 May 2016 22:06:55 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20expect=20a=20charset=20attribut?= =?UTF-8?q?e=20on=20a=20text/css=20Content-Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the encoding change made in 428a10a, the character encoding of a response is no longer forced. See gh-5459 --- .../web/staticcontent/SampleWebStaticApplicationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-web-static/src/test/java/sample/web/staticcontent/SampleWebStaticApplicationTests.java b/spring-boot-samples/spring-boot-sample-web-static/src/test/java/sample/web/staticcontent/SampleWebStaticApplicationTests.java index 07d7249ed2c..3e6ad7fb552 100644 --- a/spring-boot-samples/spring-boot-sample-web-static/src/test/java/sample/web/staticcontent/SampleWebStaticApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-web-static/src/test/java/sample/web/staticcontent/SampleWebStaticApplicationTests.java @@ -62,7 +62,7 @@ public class SampleWebStaticApplicationTests { assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getBody()).contains("body"); assertThat(entity.getHeaders().getContentType()) - .isEqualTo(MediaType.valueOf("text/css;charset=UTF-8")); + .isEqualTo(MediaType.valueOf("text/css")); } }