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
pull/5864/head
Andy Wilkinson 9 years ago
parent e71cea55ba
commit e8e728106e

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

Loading…
Cancel
Save