Skip to content

Commit 0a110f7

Browse files
author
Aaron Schlesinger
committed
fix(pkg/gitreceive/storage/client.go): use the endpoint's secure field
1 parent 40949cf commit 0a110f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/storage/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func GetClient(regionStr string, fs sys.FS, env sys.Env) (*Client, error) {
2323
}
2424

2525
// the New function call guesses which signature version to use. Currently, it correctly guesses V2 for GCS and V4 for both AWS S3 and Minio
26-
s3Client, err := s3.New(endpoint.URLStr, auth.accessKeyID, auth.accessKeySecret, false)
26+
s3Client, err := s3.New(endpoint.URLStr, auth.accessKeyID, auth.accessKeySecret, !endpoint.Secure)
2727
if err != nil {
2828
return nil, err
2929
}

0 commit comments

Comments
 (0)