Commit e8e72810 authored by Andy Wilkinson's avatar Andy Wilkinson

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

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

See gh-5459
parent e71cea55
......@@ -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"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment