Skip to content

Commit

Permalink
fix signurl
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennaEpp committed Jun 27, 2023
1 parent f71f7f0 commit 4540338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (b *BucketHandle) SignedURL(object string, opts *SignedURLOptions) (string,

if newopts.Hostname == "" {
// Extract the correct host from the readhost set on the client
newopts.Hostname = b.c.readHost
newopts.Hostname = b.c.xmlHost
}

if opts.GoogleAccessID != "" && (opts.SignBytes != nil || len(opts.PrivateKey) > 0) {
Expand Down Expand Up @@ -226,7 +226,7 @@ func (b *BucketHandle) GenerateSignedPostPolicyV4(object string, opts *PostPolic

if newopts.Hostname == "" {
// Extract the correct host from the readhost set on the client
newopts.Hostname = b.c.readHost
newopts.Hostname = b.c.xmlHost
}

if opts.GoogleAccessID != "" && (opts.SignRawBytes != nil || opts.SignBytes != nil || len(opts.PrivateKey) > 0) {
Expand Down

0 comments on commit 4540338

Please sign in to comment.