Skip to content

Commit adf3d2f

Browse files
committed
Add objectAttrs to the object metadata for google provider
1 parent aede048 commit adf3d2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

google/store.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ func newObject(g *GcsFS, o *storage.ObjectAttrs) *object {
320320
metadata = make(map[string]string)
321321
}
322322
metadata["content_length"] = strconv.FormatInt(o.Size, 10)
323+
metadata["attrs_content_type"] = o.ContentType
324+
metadata["attrs_cache_control"] = o.CacheControl
323325
return &object{
324326
name: o.Name,
325327
updated: o.Updated,

0 commit comments

Comments
 (0)