diff --git a/cmd/bucket-lifecycle.go b/cmd/bucket-lifecycle.go index a409b2dbd..3744c7da4 100644 --- a/cmd/bucket-lifecycle.go +++ b/cmd/bucket-lifecycle.go @@ -550,7 +550,7 @@ func putRestoreOpts(bucket, object string, rreq *RestoreObjectRequest, objInfo O if rreq.Type == SelectRestoreRequest { for _, v := range rreq.OutputLocation.S3.UserMetadata { - if !strings.HasPrefix("x-amz-meta", strings.ToLower(v.Name)) { + if !strings.HasPrefix(strings.ToLower(v.Name), "x-amz-meta") { meta["x-amz-meta-"+v.Name] = v.Value continue }