fix: Adds quotes for object Etags

This commit is contained in:
niksis02
2025-02-28 00:43:51 +04:00
parent 2dbbfb87cf
commit d13791f5ce
4 changed files with 6 additions and 7 deletions

View File

@@ -563,7 +563,7 @@ Pager:
break Pager
}
objects = append(objects, s3response.Object{
ETag: (*string)(v.Properties.ETag),
ETag: backend.GetPtrFromString(fmt.Sprintf("%q", *v.Properties.ETag)),
Key: v.Name,
LastModified: v.Properties.LastModified,
Size: v.Properties.ContentLength,
@@ -645,7 +645,7 @@ Pager:
break Pager
}
objects = append(objects, s3response.Object{
ETag: (*string)(v.Properties.ETag),
ETag: backend.GetPtrFromString(fmt.Sprintf("%q", *v.Properties.ETag)),
Key: v.Name,
LastModified: v.Properties.LastModified,
Size: v.Properties.ContentLength,