Fix PutObject Trailing checksum (#20456)

PutObject would verify trailing checksums, but not store them.

Fixes #20455
This commit is contained in:
Klaus Post
2024-09-19 05:59:07 -07:00
committed by GitHub
parent e1c2344591
commit 05a6c170bf
4 changed files with 21 additions and 5 deletions

View File

@@ -1960,6 +1960,7 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req
return
}
opts.IndexCB = idxCb
opts.WantChecksum = hashReader.Checksum()
if opts.PreserveETag != "" ||
r.Header.Get(xhttp.IfMatch) != "" ||