fix(s3): accept empty put without content length (#6849)

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-08-29 19:31:33 +08:00
committed by GitHub
parent 5fa3d2a682
commit 78cb142c91
6 changed files with 250 additions and 62 deletions
+1 -1
View File
@@ -656,7 +656,7 @@ impl DefaultObjectUsecase {
req_info.object = Some(fpath.clone());
req_info.version_id = None;
}
let entry_size = f.header().size().unwrap_or_default();
let entry_size = f.effective_size();
validate_put_object_extract_entry_size(&fpath, entry_size, extract_limits)?;
total_unpacked_size = total_unpacked_size
.checked_add(entry_size)