From 0605e236638cf4a693d568c5a2796caca718b2cb Mon Sep 17 00:00:00 2001 From: Brent Gardner Date: Thu, 5 Dec 2024 09:03:51 -0700 Subject: [PATCH] match --- object_store/src/aws/client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", "")])