diff --git a/cmd/object-handlers-common.go b/cmd/object-handlers-common.go index 3feff7b68..3b0cffe0a 100644 --- a/cmd/object-handlers-common.go +++ b/cmd/object-handlers-common.go @@ -23,6 +23,7 @@ import ( "net/http" "regexp" "strconv" + "strings" "time" "github.com/minio/minio/internal/amztime" @@ -325,6 +326,9 @@ func canonicalizeETag(etag string) string { // isETagEqual return true if the canonical representations of two ETag strings // are equal, false otherwise func isETagEqual(left, right string) bool { + if strings.TrimSpace(right) == "*" { + return true + } return canonicalizeETag(left) == canonicalizeETag(right) }