fix: regression in CopyObject not preserving ETag in --compat (#9322)

issue found after `git bisect` to commit db41953618
This commit is contained in:
Harshavardhana 2020-04-11 20:20:30 -07:00 committed by GitHub
parent c434dff0a4
commit 29e0727b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -993,7 +993,9 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re
return
}
pReader = NewPutObjReader(rawReader, srcInfo.Reader, &objEncKey)
if isTargetEncrypted {
pReader = NewPutObjReader(rawReader, srcInfo.Reader, &objEncKey)
}
}
}