Switching from base64 to hex for etag

This commit is contained in:
Frederick F. Kautz IV
2015-03-16 18:38:42 -07:00
parent 211b084e50
commit 1a88b36c55
3 changed files with 4 additions and 15 deletions
+1 -3
View File
@@ -19,7 +19,6 @@ package minioapi
import (
"sort"
"encoding/hex"
mstorage "github.com/minio-io/minio/pkg/storage"
)
@@ -90,8 +89,7 @@ func generateObjectsListResult(bucket string, objects []mstorage.ObjectMetadata,
}
content.Key = object.Key
content.LastModified = object.Created.Format(iso8601Format)
md5Bytes, _ := hex.DecodeString(object.Md5)
content.ETag = hex.EncodeToString(md5Bytes)
content.ETag = object.Md5
content.Size = object.Size
content.StorageClass = "STANDARD"
content.Owner = owner