Cleanup and update the PR with the master branch.

This commit is contained in:
Remco Verhoef
2017-05-17 14:59:20 +02:00
committed by Harshavardhana
parent a76556ec1b
commit 0dab038858
7 changed files with 13 additions and 1086 deletions

View File

@@ -351,7 +351,7 @@ func (l *gcsGateway) ListObjects(bucket string, prefix string, marker string, de
Bucket: attrs.Bucket,
ModTime: attrs.Updated,
Size: attrs.Size,
MD5Sum: hex.EncodeToString(attrs.MD5),
ETag: hex.EncodeToString(attrs.MD5),
UserDefined: attrs.Metadata,
ContentType: attrs.ContentType,
ContentEncoding: attrs.ContentEncoding,
@@ -443,7 +443,7 @@ func fromGCSObjectInfo(attrs *storage.ObjectAttrs) ObjectInfo {
Bucket: attrs.Bucket,
ModTime: attrs.Updated,
Size: attrs.Size,
MD5Sum: hex.EncodeToString(attrs.MD5),
ETag: hex.EncodeToString(attrs.MD5),
UserDefined: attrs.Metadata,
ContentType: attrs.ContentType,
ContentEncoding: attrs.ContentEncoding,
@@ -691,7 +691,7 @@ func (l *gcsGateway) PutObjectPart(bucket string, key string, uploadID string, p
return PartInfo{
PartNumber: partID,
LastModified: info.ModTime,
ETag: info.MD5Sum,
ETag: info.ETag,
Size: info.Size,
}, err
}