diff --git a/api/handler/list.go b/api/handler/list.go index 9c018e8d..f8324b26 100644 --- a/api/handler/list.go +++ b/api/handler/list.go @@ -202,7 +202,6 @@ func encodeV1(arg *listObjectsArgs, list *layer.ListObjectsInfo) *ListObjectsRes res.Contents = append(res.Contents, Object{ Key: obj.Name, Size: obj.Size, - UserMetadata: obj.Headers, LastModified: obj.Created.Format(time.RFC3339), Owner: Owner{ @@ -265,7 +264,6 @@ func encodeV2(arg *listObjectsArgs, list *layer.ListObjectsInfo) *ListObjectsV2R res.Contents = append(res.Contents, Object{ Key: obj.Name, Size: obj.Size, - UserMetadata: obj.Headers, LastModified: obj.Created.Format(time.RFC3339), Owner: Owner{ diff --git a/api/handler/response.go b/api/handler/response.go index fda7f60d..42f2e556 100644 --- a/api/handler/response.go +++ b/api/handler/response.go @@ -104,9 +104,6 @@ type Object struct { // The class of storage used to store the object. StorageClass string `xml:"StorageClass,omitempty"` - - // UserMetadata user-defined metadata - UserMetadata StringMap `xml:"UserMetadata,omitempty"` } // ObjectVersionResponse container for object version in the response of ListBucketObjectVersionsHandler.