Skip to content

[release/6.0-rc1] Enable SocketHttpHandler to decompress zlib or deflate - #57940

Merged
stephentoub merged 5 commits into
release/6.0-rc1from
backport/pr-57862-to-release/6.0-rc1
Aug 23, 2021
Merged

[release/6.0-rc1] Enable SocketHttpHandler to decompress zlib or deflate#57940
stephentoub merged 5 commits into
release/6.0-rc1from
backport/pr-57862-to-release/6.0-rc1

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Aug 23, 2021

Copy link
Copy Markdown
Contributor

Backport of #57862 to release/6.0-rc1
/cc @stephentoub

Some servers incorrectly implement the deflate content-coding with the raw deflate algorithm rather than with deflate wrapped with a zlib header/footer. Auto-detect whether to use ZLibStream or DeflateStream in order to accomodate both kinds of responses.

Fixes#57604

Customer Impact

Attempting to use HttpClient in .NET 6 with servers that use raw deflate-compressed responses would fail.

Testing

CI with new tests

Risk

Scoped to only affecting use of SocketsHttpHandler with HTTP responses demarcated as being deflate compressed.

Some servers incorrectly implement the deflate content-coding with the raw deflate algorithm rather than with deflate wrapped with a zlib header/footer. Auto-detect whether to use ZLibStream or DeflateStream in order to accomodate both kinds of responses.
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #57862 to release/6.0-rc1

/cc @stephentoub

Customer Impact

Testing

Risk

Author:github-actions[bot]
Assignees:-
Labels:

area-System.Net.Http

Milestone:-

@karelzkarelz added this to the 6.0.0 milestone Aug 23, 2021
@karelz
karelz requested a review from danmoseleyAugust 23, 2021 15:45
@stephentoub
stephentoub merged commit 030f560 into release/6.0-rc1Aug 23, 2021
@stephentoub
stephentoub deleted the backport/pr-57862-to-release/6.0-rc1 branch August 23, 2021 19:57
@ghostghost locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@karelz@stephentoub