Skip to content

smithy-http: Disable auto-decompression in aiohttp client#708

Merged
arandito merged 1 commit into
smithy-lang:developfrom
arandito:disable-auto-decompression
Jun 2, 2026
Merged

smithy-http: Disable auto-decompression in aiohttp client#708
arandito merged 1 commit into
smithy-lang:developfrom
arandito:disable-auto-decompression

Conversation

@arandito
Copy link
Copy Markdown
Contributor

@arandito arandito commented Jun 2, 2026

Description

The AIOHTTPClient currently creates its session with aiohttp's defaults, which transparently decompress Content-Encoding responses before they're buffered via resp.read(). This change constructs the session with auto_decompress=False and a default Accept-Encoding: identity header (reference), so the codec receives the response bytes as sent and servers are asked not to compress.

Matches similar fixes in smithy-ruby and smithy-kotlin.

Testing

  • Ran make test-py successfully
  • Generated STS client with AIOHTTPClient and confirmed round-trip requests are functional
  • Added a todo for a functional test once we have a test client framework

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@arandito arandito requested a review from a team as a code owner June 2, 2026 18:39
@arandito arandito merged commit 31c2818 into smithy-lang:develop Jun 2, 2026
8 checks passed
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.

2 participants