LoopbackServer.ReadAsync: Fixed data corruption bug (#34875)
authorTalAloni <tal.aloni.il@gmail.com>
Mon, 13 Apr 2020 00:34:31 +0000 (03:34 +0300)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 00:34:31 +0000 (20:34 -0400)
commit21a7f5e1a6538214804fb6ed2dbbed28d025ed3b
tree39df2fdbfb17ad34b0328bc6ab958d5646907efa
parentc09a25e1e21a36cf0625fb0d871f6b1e5402495e
LoopbackServer.ReadAsync: Fixed data corruption bug (#34875)

This caused the unused parts of the temp buffer to be copied to buffer, returning 0 to the caller instead of the actual data.
This caused several tests to fail when targeting .NET Standard 2.0
src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs