Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust test_get_gzip to set Accept-Encoding header
requests 2.26.0 added brotli support and now gets its Accept-Encoding header from urllib3.util.make_headers. The latter appends ",br" to it if the brotli or brotlicffi packages are installed, thus breaking the test_django_whitenoise.py::test_get_gzip test. Adjust test_get_gzip to explicitly set "Accept-Encoding" to "gzip".
- Loading branch information