Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix BlobClient::put_block_list #1316

Merged
merged 2 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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