Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HttpCompressionMiddleware warn if got unsupported compression in response #6382

Closed
wants to merge 1 commit into from

Conversation

abebus
Copy link

@abebus abebus commented May 30, 2024

If brotli (or other brotli decompression package) or zstandard are not installed, HttpCompressionMiddleware will return uncompressed response body without any warning,
How to get this behaviour: add 'br' or 'zstd' to header 'Accept-Encoding' to Request manually or via DEFAULT_REQUEST_HEADERS dictionary in settings.py.

@wRAR
Copy link
Member

wRAR commented May 30, 2024

This is inferior to e.g. #6145

@wRAR wRAR closed this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants