settings/production: Force azure blob storage content_encoding to None
Ensure azure blob storage do not serve uploaded tarballs with gzip encoding as they are usually already compressed and uncompressed tarballs with wrong extensions (.tgz instead .tar) are erroneously detected as gzip encoded by django-storages due to the use of the mimetypes Python module. Fixes #5589.
parent
46e2c7b6
No related branches found
No related tags found
Showing
- swh/deposit/settings/production.py 14 additions, 4 deletionsswh/deposit/settings/production.py
- swh/deposit/tests/api/test_deposit_private_upload_urls.py 24 additions, 9 deletionsswh/deposit/tests/api/test_deposit_private_upload_urls.py
- swh/deposit/tests/conftest.py 22 additions, 1 deletionswh/deposit/tests/conftest.py
Loading
Please register or sign in to comment