Merge pull request #2745 from dotnet/set-content-type-for-versions

set-content-type-for-versions
This commit is contained in:
Eric Erhardt 2016-05-11 13:00:50 -05:00
commit 1923b1ffdf

View file

@ -58,6 +58,9 @@ namespace Microsoft.DotNet.Cli.Build
{
CloudBlockBlob blockBlob = _blobContainer.GetBlockBlobReference(blob);
blockBlob.UploadTextAsync(content).Wait();
blockBlob.Properties.ContentType = "text/plain";
blockBlob.SetPropertiesAsync().Wait();
}
public void CopyBlob(string sourceBlob, string targetBlob)
@ -83,6 +86,11 @@ namespace Microsoft.DotNet.Cli.Build
blockBlob.Properties.CacheControl = "no-cache";
blockBlob.SetPropertiesAsync().Wait();
}
else if (Path.GetExtension(blockBlob.Uri.AbsolutePath.ToLower()) == ".version")
{
blockBlob.Properties.ContentType = "text/plain";
blockBlob.SetPropertiesAsync().Wait();
}
}
public IEnumerable<string> ListBlobs(string virtualDirectory)