HTTP2: fix header corruption issue (dotnet/corefx#40487)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Thu, 22 Aug 2019 20:49:07 +0000 (21:49 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2019 20:49:07 +0000 (21:49 +0100)
commit6379ad84d379e9c9c13b6020ba90632ea53ff1f8
tree53a60b361788bff738c95afa63db054c3f5727ba
parent3b414cb8a6eeddf1f51453527a1604fcf1153a0b
HTTP2: fix header corruption issue (dotnet/corefx#40487)

* HTTP2: fix header corruption issue

Fixes a bug in HPackEncoder which results in header
data corruption in cases where the write buffer has
not been zeroed out. Adds HPack roundtrip tests.
Fixes dotnet/corefx#40459.

Commit migrated from https://github.com/dotnet/corefx/commit/6f9796080563c9c40359e641e3287fabe42b580c
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HPack/HPackEncoder.cs
src/libraries/System.Net.Http/tests/UnitTests/HPack/HPackRoundtripTests.cs [new file with mode: 0644]
src/libraries/System.Net.Http/tests/UnitTests/System.Net.Http.Unit.Tests.csproj