Skip to content

Commit

Permalink
fix base64 encode
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Feb 17, 2024
1 parent 13f90da commit 2d37013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/services/azblob/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ impl AzblobCore {
self.endpoint,
self.container,
percent_encode_path(&p),
BASE64_STANDARD.encode(block_id),
BASE64_STANDARD.encode(block_id.as_bytes()),
);
let mut req = Request::put(&url);
// Set SSE headers.
Expand Down Expand Up @@ -459,7 +459,7 @@ impl AzblobCore {
let content = quick_xml::se::to_string(&PutBlockListRequest {
uncommitted: block_ids
.into_iter()
.map(|block_id| BASE64_STANDARD.encode(block_id))
.map(|block_id| BASE64_STANDARD.encode(block_id.as_bytes()))
.collect(),
})
.map_err(new_xml_deserialize_error)?;
Expand Down

0 comments on commit 2d37013

Please sign in to comment.