mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: apply pre-conditions first on object metadata (#12545)
This change in error flow complies with AWS S3 behavior for applications depending on specific error conditions. fixes #12543
This commit is contained in:
@@ -342,7 +342,7 @@ func getTransitionedObjectReader(ctx context.Context, bucket, object string, rs
|
||||
closer := func() {
|
||||
reader.Close()
|
||||
}
|
||||
return fn(reader, h, opts.CheckPrecondFn, closer)
|
||||
return fn(reader, h, closer)
|
||||
}
|
||||
|
||||
// RestoreRequestType represents type of restore.
|
||||
|
||||
Reference in New Issue
Block a user