Skip to content

Commit

Permalink
disable mandatory V2 Google signature
Browse files Browse the repository at this point in the history
  • Loading branch information
loorke committed Aug 10, 2023
1 parent c0ea248 commit bf10bf2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ func New(endpoint string, opts *Options) (*Client, error) {
if err != nil {
return nil, err
}
// Google cloud storage should be set to signature V2, force it if not.
if s3utils.IsGoogleEndpoint(*clnt.endpointURL) {
clnt.overrideSignerType = credentials.SignatureV2
}
// If Amazon S3 set to signature v4.
if s3utils.IsAmazonEndpoint(*clnt.endpointURL) {
clnt.overrideSignerType = credentials.SignatureV4
Expand Down

0 comments on commit bf10bf2

Please sign in to comment.