Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions s3/src/request/request_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,16 @@ pub trait Request {
Command::GetObjectTagging => {}
Command::GetBucketLocation => {}
Command::ListBuckets => {}
// Bodyless DELETE requests must not sign Content-Length/Content-Type:
// the HTTP client never transmits them, so strict SigV4 validators
// (e.g. Cloudflare R2) reconstruct a different canonical request and
// reject with SignatureDoesNotMatch (see issue #466).
Command::DeleteObject
| Command::DeleteObjectTagging
| Command::AbortMultipartUpload { .. }
| Command::DeleteBucket
| Command::DeleteBucketCors { .. }
| Command::DeleteBucketLifecycle => {}
_ => {
headers.insert(
CONTENT_LENGTH,
Expand Down