Skip to content

Conversation

@AhamadAlii
Copy link

When using stream=True, Requests does not automatically decompress gzip-encoded
responses when accessing Response.raw. This behavior is intentional but not
clearly documented and has caused repeated confusion.

This PR adds a note in the advanced documentation explaining the behavior and
shows how to enable decompression manually:

r.raw.decode_content = True

This documents the intended behavior discussed in #2155 and related issues.

@AhamadAlii
Copy link
Author

This documents the behavior discussed in #2155 and related issues.
Happy to adjust wording if needed.

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.

1 participant