fix: conditional checks write for multipart (#21567)

This commit is contained in:
M Alvee
2025-09-07 09:13:09 -07:00
committed by GitHub
parent 0cde982902
commit 07c3a429bf
5 changed files with 25 additions and 2 deletions
+3
View File
@@ -2014,6 +2014,9 @@ func (api objectAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Req
pReader := NewPutObjReader(rawReader)
opts.IndexCB = idxCb
if r.Header.Get(xhttp.IfMatch) != "" {
opts.HasIfMatch = true
}
if opts.PreserveETag != "" ||
r.Header.Get(xhttp.IfMatch) != "" ||
r.Header.Get(xhttp.IfNoneMatch) != "" {