diff --git a/object_store/src/aws/client.rs b/object_store/src/aws/client.rs index b6d6b62a16d..cc26a2c8864 100644 --- a/object_store/src/aws/client.rs +++ b/object_store/src/aws/client.rs @@ -619,7 +619,11 @@ impl S3Client { ) -> Result { 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", "")])