Skip to content

Commit

Permalink
disable mandatory V2 Google signature (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
loorke authored Aug 14, 2023
1 parent bd8cf2b commit b42bd7d
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 b42bd7d

Please sign in to comment.