From 6ee21eff4f519d46cd2d8bccb8a06fd77758f0d2 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Thu, 6 Jul 2023 18:30:13 -0400 Subject: [PATCH] fix BlobClient::put_block_list (#1316) --- sdk/storage_blobs/Cargo.toml | 2 +- sdk/storage_blobs/src/blob/operations/put_block_list.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/storage_blobs/Cargo.toml b/sdk/storage_blobs/Cargo.toml index 83d9dc8f67..1c960de14f 100644 --- a/sdk/storage_blobs/Cargo.toml +++ b/sdk/storage_blobs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "azure_storage_blobs" -version = "0.13.0" +version = "0.13.1" description = "Azure Blob Storage crate from the Azure SDK for Rust" readme = "README.md" authors = ["Microsoft Corp."] diff --git a/sdk/storage_blobs/src/blob/operations/put_block_list.rs b/sdk/storage_blobs/src/blob/operations/put_block_list.rs index 7d1bcaea99..07c694bb51 100644 --- a/sdk/storage_blobs/src/blob/operations/put_block_list.rs +++ b/sdk/storage_blobs/src/blob/operations/put_block_list.rs @@ -2,7 +2,7 @@ use crate::prelude::*; #[cfg(feature = "md5")] use azure_core::base64; use azure_core::{headers::*, prelude::*, RequestId}; -use azure_storage::{headers::content_md5_from_headers, ConsistencyMD5}; +use azure_storage::{headers::content_md5_from_headers_optional, ConsistencyMD5}; use bytes::Bytes; use time::OffsetDateTime; @@ -79,7 +79,7 @@ impl PutBlockListBuilder { pub struct PutBlockListResponse { pub etag: String, pub last_modified: OffsetDateTime, - pub content_md5: ConsistencyMD5, + pub content_md5: Option, pub request_id: RequestId, pub date: OffsetDateTime, pub request_server_encrypted: bool, @@ -89,7 +89,7 @@ impl PutBlockListResponse { pub(crate) fn from_headers(headers: &Headers) -> azure_core::Result { let etag = etag_from_headers(headers)?; let last_modified = last_modified_from_headers(headers)?; - let content_md5 = content_md5_from_headers(headers)?; + let content_md5 = content_md5_from_headers_optional(headers)?; let request_id = request_id_from_headers(headers)?; let date = date_from_headers(headers)?; let request_server_encrypted = request_server_encrypted_from_headers(headers)?;