Make sure to reply back ETag with quotes for s3 compliance

This commit is contained in:
Harshavardhana
2015-06-09 01:12:32 -07:00
parent 0c5aa7a3d8
commit 6d44274db6
3 changed files with 4 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ func generateListObjectsResponse(bucket string, objects []drivers.ObjectMetadata
}
content.Key = object.Key
content.LastModified = object.Created.Format(iso8601Format)
content.ETag = object.Md5
content.ETag = "\"" + object.Md5 + "\""
content.Size = object.Size
content.StorageClass = "STANDARD"
content.Owner = owner
@@ -152,7 +152,7 @@ func generateListPartsResult(objectMetadata drivers.ObjectResourcesMetadata) Lis
for _, part := range objectMetadata.Part {
newPart := &Part{}
newPart.PartNumber = part.PartNumber
newPart.ETag = part.ETag
newPart.ETag = "\"" + part.ETag + "\""
newPart.Size = part.Size
newPart.LastModified = part.LastModified.Format(iso8601Format)
listPartsResponse.Part = append(listPartsResponse.Part, newPart)

View File

@@ -6,7 +6,7 @@ Erasure is an open source Golang library written on top of ISAL (Intel Intellige
* [Get Source](./CONTRIBUTING.md)
* [Build Dependencies](./BUILDDEPS.md)
* [Development Workflow](./CONTRIBUTING.md#developer-guidelines)
* [Developer discussions and bugs](https://github.com/minio/erasure/issues)
* [Developer discussions and bugs](https://github.com/minio/minio/issues)
### Supported platforms