Skip to content

Commit

Permalink
fix BlobClient::put_block_list (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoray authored Jul 6, 2023
1 parent 7fe4da3 commit 6ee21ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/storage_blobs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."]
Expand Down
6 changes: 3 additions & 3 deletions sdk/storage_blobs/src/blob/operations/put_block_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -79,7 +79,7 @@ impl PutBlockListBuilder {
pub struct PutBlockListResponse {
pub etag: String,
pub last_modified: OffsetDateTime,
pub content_md5: ConsistencyMD5,
pub content_md5: Option<ConsistencyMD5>,
pub request_id: RequestId,
pub date: OffsetDateTime,
pub request_server_encrypted: bool,
Expand All @@ -89,7 +89,7 @@ impl PutBlockListResponse {
pub(crate) fn from_headers(headers: &Headers) -> azure_core::Result<PutBlockListResponse> {
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)?;
Expand Down

0 comments on commit 6ee21ef

Please sign in to comment.