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

Automatically Handle Server-side Compression #19

Closed
kennethreitz opened this issue Apr 11, 2011 · 0 comments
Closed

Automatically Handle Server-side Compression #19

kennethreitz opened this issue Apr 11, 2011 · 0 comments
Assignees
Milestone

Comments

@kennethreitz
Copy link
Contributor

Reproducible example:

import zlib
import requests

r = requests.get('http://api.stackoverflow.com/1.1/users/495995/top-answer-tags')

zlib.decompress(r.content, 16+zlib.MAX_WBITS)

This should already be decompressed because of the response header:

>>> r.headers['content-encoding']
'gip'
@ghost ghost assigned kennethreitz Apr 11, 2011
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant