-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Long story short
Currently unable to read brotli-compressed response. Is the support on the roadmap?
Expected behaviour
Able to read.
Actual behaviour
awaiting response.text
will raise
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 5: invalid continuation byte
Steps to reproduce
import asyncio, aiohttp
run = asyncio.get_event_loop().run_until_complete
async def f():
async with aiohttp.ClientSession(headers={'Accept-Encoding': 'br'}) as session:
async with session.get("https://www.amazon.com") as resp:
html = await resp.text()
run(f())
Your environment
Python 3.6.2
aiohttp==2.2.5
chardet==3.0.4
on Linux Mint 13
achimnol