This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
BlobClient.Upload is saving ContentMD5. However later on I am using SetHttpHeadersAsync to set the content type, this is overriding the ContentMD5 and setting it to empty.
Expected behavior
The SetHttpHeadersAsync should not override the ContentMD5 to the blob.
Actual behavior
The SetHttpHeadersAsync overriding ContentMD5.
Reproduction Steps
Upload file using BlobClient.UploadAsync method
execute SetHttpHeadersAsync to set content type
Environment
Debain 10, the code i deployed on docker image using kubernetes.
Library name and version
Azure.Storage.Blobs 12.19.1.0
Describe the bug
BlobClient.Upload is saving ContentMD5. However later on I am using SetHttpHeadersAsync to set the content type, this is overriding the ContentMD5 and setting it to empty.
Expected behavior
The SetHttpHeadersAsync should not override the ContentMD5 to the blob.
Actual behavior
The SetHttpHeadersAsync overriding ContentMD5.
Reproduction Steps
Upload file using BlobClient.UploadAsync method execute SetHttpHeadersAsync to set content type
Environment
Debain 10, the code i deployed on docker image using kubernetes.