Skip to content

Commit

Permalink
Merge pull request #116 from tombuildsstuff/bugfix/blobs-metadata-set…
Browse files Browse the repository at this point in the history
…-with-encryption-scope

bugfix: encryption scope must be specified when updating blob metadata
  • Loading branch information
manicminer authored Apr 9, 2024
2 parents bdd54c4 + ad88c4b commit 41801b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions storage/2023-11-03/blob/blobs/metadata_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type SetMetaDataInput struct {

// Any metadata which should be added to this blob
MetaData map[string]string

// The encryption scope for the blob.
EncryptionScope *string
}

type SetMetaDataResponse struct {
Expand Down Expand Up @@ -85,6 +88,9 @@ func (s setMetadataOptions) ToHeaders() *client.Headers {
if s.input.LeaseID != nil {
headers.Append("x-ms-lease-id", *s.input.LeaseID)
}
if s.input.EncryptionScope != nil {
headers.Append("x-ms-encryption-scope", *s.input.EncryptionScope)
}
headers.Merge(metadata.SetMetaDataHeaders(s.input.MetaData))
return headers
}
Expand Down

0 comments on commit 41801b9

Please sign in to comment.