Don’t expect a charset attribute on a text/css Content-Type

Following the encoding change made in 428a10a, the character encoding
of a response is no longer forced.

See gh-5459
This commit is contained in:
Andy Wilkinson 2016-05-03 22:06:55 +01:00
parent e71cea55ba
commit e8e728106e
1 changed files with 1 additions and 1 deletions

View File

@ -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"));
}
}