mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Performing etag off of bytes rather than md5 string
This commit is contained in:
@@ -90,7 +90,8 @@ func generateObjectsListResult(bucket string, objects []mstorage.ObjectMetadata,
|
||||
}
|
||||
content.Key = object.Key
|
||||
content.LastModified = object.Created.Format(iso8601Format)
|
||||
content.ETag = hex.EncodeToString([]byte(object.Md5))
|
||||
md5Bytes, _ := hex.DecodeString(object.Md5)
|
||||
content.ETag = hex.EncodeToString(md5Bytes)
|
||||
content.Size = object.Size
|
||||
content.StorageClass = "STANDARD"
|
||||
content.Owner = owner
|
||||
|
||||
Reference in New Issue
Block a user