Skip to content

Commit

Permalink
bugfix: encryption scope must be specified when updating blob metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Apr 9, 2024
1 parent bdd54c4 commit ad88c4b
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 ad88c4b

Please sign in to comment.