Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "bugfix",
"description": "Disabled automatic response decompression in `AIOHTTPClient`."
}
8 changes: 7 additions & 1 deletion packages/smithy-http/src/smithy_http/aio/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ def __init__(
"""
_assert_aiohttp()
self._config = client_config or AIOHTTPClientConfig()
self._session = _session or aiohttp.ClientSession()
# Disable transparent response decompression and advertise
# 'identity' to request uncompressed responses.
# TODO: add a functional test once the test client framework exists
self._session = _session or aiohttp.ClientSession(
auto_decompress=False,
headers={"Accept-Encoding": "identity"},
)

async def send(
self,
Expand Down
Loading