Skip to content

Enable automatic response decompression by default - #1272

Merged
nozzlegear merged 1 commit into
nozzlegear:masterfrom
AllainPL:gzip-by-default
Oct 27, 2026
Merged

nozzlegear merged 1 commit into
nozzlegear:masterfrom
AllainPL:gzip-by-default

Conversation

@AllainPL

Copy link
Copy Markdown
Contributor

Closes #1271.

InternalHttpClientFactory now builds its static HttpClient with AutomaticDecompression enabled, so requests send Accept-Encoding and Shopify responses come back compressed. It uses DecompressionMethods.All on .NET and GZip | Deflate on netstandard2.0, where All doesn't exist. Clients set through SetHttpClient / SetGlobalHttpClientFactory are unaffected.

No test added - the factory has none today, and HttpClient doesn't expose its handler. If you'd like one, I can move the handler into an internal method and test that.

ShopifyDomainUtilityTest.IsValidShopDomainAsync_ReturnsTrueForShopifyDomains fails locally on master as well, so that one is unrelated.

@AllainPL
AllainPL marked this pull request as ready for review October 26, 2026 19:57
@nozzlegear

Copy link
Copy Markdown
Owner

Awesome, thanks! I'm going to be working on ShopifySharp tonight, I'll take a look at that failing test and get this merged.

@nozzlegear
nozzlegear merged commit 4544446 into nozzlegear:master Oct 27, 2026
2 checks passed
@nozzlegear

Copy link
Copy Markdown
Owner

Merged! It'll be a few days before I get it published on Nuget, I've got a stack of updates I want to publish alongside this. I'll post another comment here once it's published, thanks for contributing!

@AllainPL

Copy link
Copy Markdown
Contributor Author

Thanks for taking this in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default HttpClient doesn't request compression, so Shopify responses arrive uncompressed

2 participants