fs: fix a regression allow reading of existing files (#5889)

master
Harshavardhana 7 years ago committed by Dee Koder
parent 2ecc976950
commit c98d8cb1c7
  1. 2
      cmd/fs-v1.go

@ -480,7 +480,7 @@ func (fs *FSObjects) getObject(ctx context.Context, bucket, object string, offse
}
}
if etag != "" {
if etag != "" && etag != defaultEtag {
objEtag, perr := fs.getObjectETag(ctx, bucket, object, lock)
if perr != nil {
return toObjectErr(perr, bucket, object)

Loading…
Cancel
Save