diff options
Diffstat (limited to 'tests/responses/test_fileresponse.py')
| -rw-r--r-- | tests/responses/test_fileresponse.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/responses/test_fileresponse.py b/tests/responses/test_fileresponse.py index ebb7876be2..af90b1170d 100644 --- a/tests/responses/test_fileresponse.py +++ b/tests/responses/test_fileresponse.py @@ -101,8 +101,10 @@ class FileResponseTests(SimpleTestCase): self.assertEqual(response.headers["Content-Type"], "video/webm") def test_content_type_buffer_explicit_default(self): - response = FileResponse(io.BytesIO(b"binary content"), content_type="text/html") - self.assertEqual(response.headers["Content-Type"], "text/html") + response = FileResponse( + io.BytesIO(b"binary content"), content_type="text/html; charset=utf-8" + ) + self.assertEqual(response.headers["Content-Type"], "text/html; charset=utf-8") def test_content_type_buffer_named(self): test_tuples = ( |
