Skip to content

Commit

Permalink
match
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Dec 5, 2024
1 parent faef21f commit 256f9c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion object_store/src/aws/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,11 @@ impl S3Client {
) -> Result<MultipartId> {
let mut reqquest = self.request(Method::POST, location);
if let Some(algorithm) = self.config.checksum {
reqquest = reqquest.header(ALGORITHM, &algorithm.to_string().to_uppercase());
match algorithm {
Checksum::SHA256 => {
reqquest = reqquest.header(ALGORITHM, "SHA256");
}
}
}
let response = reqquest
.query(&[("uploads", "")])
Expand Down

0 comments on commit 256f9c6

Please sign in to comment.