{
var ex = t.Exception.InnerException;
var we = ex as WebException;
+
var response = we.Response as HttpWebResponse;
if (response!=null && response.StatusCode==HttpStatusCode.Conflict)
{
//In case of 409 the missing parts will be in the response content
using (var stream = response.GetResponseStream())
- using(var reader=stream.GetLoggedReader(Log))
+ using(var reader=stream.GetLoggedReader(Log,response.ContentLength))
{
//We used to have to cleanup the content before returning it because it contains
//error content after the list of hashes