Skip to content

AsyncClient doesn't decompress based on Content-Encoding response headers #1814

Discussion options

You must be logged in to vote

Hi - I'm not able to reproduce the behaviour you're seeing...

Installation...

$ pip install httpx[brotli]

Usage...

>>> import httpx
>>> r = httpx.get("https://www.indeed.com/")
>>> r.text
'<!DOCTYPE html>\n<html dir="ltr" lang="en">\n [...]'
>>> r.request.headers["accept-encoding"]
'gzip, deflate, br'

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ranedk
Comment options

@tomchristie
Comment options

@ranedk
Comment options

Answer selected by tomchristie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants