Revision c945b450 trunk/Pithos.Network/CloudFilesClient.cs
b/trunk/Pithos.Network/CloudFilesClient.cs | ||
---|---|---|
1031 | 1031 |
//Send the tree hash as Json to the server |
1032 | 1032 |
client.Headers[HttpRequestHeader.ContentType] = "application/octet-stream"; |
1033 | 1033 |
var jsonHash = hash.ToJson(); |
1034 |
|
|
1035 |
client.Headers.Add("ETag",hash.MD5); |
|
1034 | 1036 |
var uploadTask=client.UploadStringTask(uri, "PUT", jsonHash); |
1035 | 1037 |
if (Log.IsDebugEnabled) |
1036 | 1038 |
Log.DebugFormat("Hashes:\r\n{0}", jsonHash); |
Also available in: Unified diff