mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
replication: enforce precondition for multipart (#19306)
This commit is contained in:
@@ -138,7 +138,7 @@ func checkCopyObjectPreconditions(ctx context.Context, w http.ResponseWriter, r
|
||||
// x-minio-source-etag
|
||||
func checkPreconditionsPUT(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
|
||||
// Return false for methods other than PUT.
|
||||
if r.Method != http.MethodPut {
|
||||
if r.Method != http.MethodPut && r.Method != http.MethodPost {
|
||||
return false
|
||||
}
|
||||
// If the object doesn't have a modtime (IsZero), or the modtime
|
||||
|
||||
Reference in New Issue
Block a user