We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a80ca commit 0e9abcdCopy full SHA for 0e9abcd
object_store/src/aws/client.rs
@@ -372,7 +372,9 @@ impl<'a> Request<'a> {
372
}
373
374
pub(crate) fn with_payload(mut self, payload: PutPayload) -> Self {
375
- if !self.config.skip_signature || self.config.checksum.is_some() {
+ if (!self.config.skip_signature && self.config.sign_payload)
376
+ || self.config.checksum.is_some()
377
+ {
378
let mut sha256 = Context::new(&digest::SHA256);
379
payload.iter().for_each(|x| sha256.update(x));
380
let payload_sha256 = sha256.finish();
0 commit comments