Permalink
Browse files

Merge pull request #96 from justinyu/sdk_1.7.1.1

Sdk 1.7.1.1
  • Loading branch information...
2 parents fe5c23c + 1aa528f commit 138464b5e64343f4cddba334f28b3d079c993d44 @jeffwilcox jeffwilcox committed Jun 20, 2012
@@ -252,6 +252,11 @@ internal class Constants
/// </summary>
internal const string ContentLengthElement = "Content-Length";
+ /// <summary>
+ /// XML element for cache control fields.
+ /// </summary>
+ internal const string CacheControlElement = "Cache-Control";
+
/// <summary>
/// XML element for content MD5 fields.
/// </summary>
@@ -262,6 +262,7 @@ protected override IEnumerable<IListBlobEntry> ParseXml()
string contentType = null;
string contentEncoding = null;
string contentLanguage = null;
+ string cacheControl = null;
string contentMD5 = null;
BlobType? blobType = null;
LeaseStatus leaseStatus = LeaseStatus.Unspecified;
@@ -326,6 +327,10 @@ protected override IEnumerable<IListBlobEntry> ParseXml()
contentLanguage = reader.ReadElementContentAsString();
blobNeedToRead = false;
break;
+ case Constants.CacheControlElement:
+ cacheControl = reader.ReadElementContentAsString();
+ blobNeedToRead = false;
+ break;
case Constants.ContentMD5Element:
contentMD5 = reader.ReadElementContentAsString();
blobNeedToRead = false;
@@ -403,6 +408,7 @@ protected override IEnumerable<IListBlobEntry> ParseXml()
blob.Properties = new BlobProperties();
blob.Properties.ContentEncoding = contentEncoding;
blob.Properties.ContentLanguage = contentLanguage;
+ blob.Properties.CacheControl = cacheControl;
blob.Properties.ContentMD5 = contentMD5;
blob.Properties.Length = contentLength ?? 0;
blob.Properties.ContentType = contentType;

2 comments on commit 138464b

i have tried to download the latest version but its seem i am always downloading the previous one i need to download one which has copyblob option so i can copy from my account to another account.

if it with sample code that would be great

Please sign in to comment.