Skip to content

Commit

Permalink
blob/s3blob: Use query variable for parameter extraction in OpenBucke…
Browse files Browse the repository at this point in the history
…tURL
  • Loading branch information
tristan-newmann committed Feb 19, 2024
1 parent 868b27d commit 1cb7fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blob/s3blob/s3blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (o *URLOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.Bucket
o.Options.EncryptionType = sseType
}

if kmsKeyID := u.Query().Get(kmsKeyIdParamKey); kmsKeyID != "" {
if kmsKeyID := q.Get(kmsKeyIdParamKey); kmsKeyID != "" {
q.Del(kmsKeyIdParamKey)
o.Options.KMSEncryptionID = kmsKeyID
}
Expand Down

0 comments on commit 1cb7fd0

Please sign in to comment.