Metadata now stores hex md5, not base64. Minio API now converts md5 hex to base64.

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