mirror of
https://github.com/minio/minio.git
synced 2026-11-28 15:31:49 +00:00
Performing etag off of bytes rather than md5 string
This commit is contained in:
1 parent
583c32c774
commit
211b084e50
3 files changed
+18
-11
No files matched your search
@@ -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