Skip to content

Commit

Permalink
Merge pull request #5 from traPtitech/fix-adding-metadata
Browse files Browse the repository at this point in the history
🐛 GCS書き込みオブジェクトのメタデータ初期化を追加
  • Loading branch information
Kentaro1043 authored Dec 7, 2024
2 parents de5fe37 + 6edb710 commit 919bbfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ func main() {
gcsObjectWriter.CacheControl = *s3ObjectOutput.CacheControl
}
if s3ObjectOutput.Metadata != nil {
if gcsObjectWriter.Metadata == nil {
gcsObjectWriter.Metadata = make(map[string]string)
}
for key, value := range s3ObjectOutput.Metadata {
gcsObjectWriter.Metadata[key] = value
}
Expand Down

0 comments on commit 919bbfc

Please sign in to comment.