Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Sdk 1.7.1.1 #96

Merged
1 commit merged into from

1 participant

@justinyu

No description provided.

@ghost ghost merged commit 138464b into Azure:sdk_1.7.1
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
5 microsoft-azure-api/StorageClient/Protocol/Constants.cs
@@ -253,6 +253,11 @@ internal class Constants
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>
internal const string ContentMD5Element = "Content-MD5";
View
6 microsoft-azure-api/StorageClient/Protocol/ListBlobsResponse.cs
@@ -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;
Something went wrong with that request. Please try again.