Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 23, 2021

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 ghost added the area-System.Net.Http label Aug 23, 2021
@ghost
Copy link

ghost commented Aug 23, 2021

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: -

@karelz karelz added this to the 6.0.0 milestone Aug 23, 2021
@karelz karelz requested a review from danmoseley August 23, 2021 15:45
@stephentoub stephentoub merged commit 030f560 into release/6.0-rc1 Aug 23, 2021
@stephentoub stephentoub deleted the backport/pr-57862-to-release/6.0-rc1 branch August 23, 2021 19:57
@ghost ghost locked as resolved and limited conversation to collaborators Sep 22, 2021
Sign up for free to 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