Revision ebc37b0d trunk/Pithos.Network/CloudFilesClient.cs
b/trunk/Pithos.Network/CloudFilesClient.cs | ||
---|---|---|
242 | 242 |
} |
243 | 243 |
|
244 | 244 |
Log.InfoFormat("[AUTHENTICATE] End for {0}", UserName); |
245 |
|
|
245 |
Debug.Assert(_baseClient!=null); |
|
246 | 246 |
|
247 | 247 |
return new AccountInfo {StorageUri = StorageUrl, Token = Token, UserName = UserName,Groups=groups}; |
248 | 248 |
|
... | ... | |
872 | 872 |
{ |
873 | 873 |
Account=account, |
874 | 874 |
Name = container, |
875 |
StorageUrl=this.StorageUrl.ToString(), |
|
875 | 876 |
Count = |
876 | 877 |
long.Parse(client.GetHeaderValue("X-Container-Object-Count")), |
877 | 878 |
Bytes = long.Parse(client.GetHeaderValue("X-Container-Bytes-Used")), |
... | ... | |
1061 | 1062 |
{ |
1062 | 1063 |
//In case of 409 the missing parts will be in the response content |
1063 | 1064 |
using (var stream = response.GetResponseStream()) |
1064 |
using(var reader=stream.GetLoggedReader(Log,response.ContentLength))
|
|
1065 |
using(var reader=stream.GetLoggedReader(Log)) |
|
1065 | 1066 |
{ |
1066 | 1067 |
//We used to have to cleanup the content before returning it because it contains |
1067 | 1068 |
//error content after the list of hashes |
Also available in: Unified diff