WebClient progress monitoring uses ContentLength header (dotnet/corefx#26462)
authorDouglas-Cleghorn <douglas@readinghorizons.com>
Thu, 1 Feb 2018 15:41:48 +0000 (08:41 -0700)
committerStephen Toub <stoub@microsoft.com>
Thu, 1 Feb 2018 15:41:48 +0000 (10:41 -0500)
commit1f0e841daee69271b7d590117f291a415388e9d6
treeebf8baaa142b6f0e1dbe2f8752639118b022588a
parenta1337d4869d6b7fdb770d18ad1bc4ed9463a7060
WebClient progress monitoring uses ContentLength header (dotnet/corefx#26462)

* WebClient progress monitoring uses ContentLength header

* Added test for download progress

* Fixed build issue

* Set contentLength to zero if the header is zero

* Fixing WebClient async tests

Commit migrated from https://github.com/dotnet/corefx/commit/3c4115d601335a61d9d170a71bdfb71eb2177beb
src/libraries/System.Net.WebClient/src/System/Net/WebClient.cs
src/libraries/System.Net.WebClient/tests/System.Net.WebClient.Tests.csproj
src/libraries/System.Net.WebClient/tests/WebClientTest.cs