forked from TrueCloudLab/frostfs-s3-gw
[#165] Fix real object size in listing
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
88f1acbdfc
commit
fafe4af529
5 changed files with 111 additions and 10 deletions
|
@ -191,7 +191,7 @@ func encodeToObjectAttributesResponse(info *data.ObjectInfo, p *GetObjectAttribu
|
|||
case storageClass:
|
||||
resp.StorageClass = api.DefaultStorageClass
|
||||
case objectSize:
|
||||
resp.ObjectSize = info.Size // todo probably we need to use GetObjectSize
|
||||
resp.ObjectSize = info.Size
|
||||
case checksum:
|
||||
checksumBytes, err := hex.DecodeString(info.HashSum)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue