1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34405 -- Fixed setting Content-Type header in FileResponse for compress and brotli.

Thanks Chamal De Silva for the report.
This commit is contained in:
Mariusz Felisiak
2023-03-14 05:45:30 +01:00
committed by GitHub
parent fbe850106b
commit 254ad2e345
2 changed files with 4 additions and 0 deletions

View File

@@ -253,8 +253,10 @@ class FileResponseTests(SimpleTestCase):
"""
test_tuples = (
(".tar.gz", "application/gzip"),
(".tar.br", "application/x-brotli"),
(".tar.bz2", "application/x-bzip"),
(".tar.xz", "application/x-xz"),
(".tar.Z", "application/x-compress"),
)
for extension, mimetype in test_tuples:
with self.subTest(ext=extension):