Added option to disable certificate checking
[pithos-ms-client] / trunk / Pithos.Network / CloudFilesClient.cs
index d2993ce..e11b4d6 100644 (file)
@@ -1055,12 +1055,13 @@ namespace Pithos.Network
                 {
                     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