mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
Use default endpoint when not supplied
This commit is contained in:
parent
6508da5fde
commit
909a89647b
@ -162,7 +162,11 @@ func newGCSGateway(endpoint string, projectID, secretKey string, secure bool) (G
|
||||
return nil, err
|
||||
}
|
||||
|
||||
anonClient, err := minio.NewCore("storage.googleapis.com", "", "", secure)
|
||||
if endpoint == "" {
|
||||
endpoint = "storage.googleapis.com"
|
||||
}
|
||||
|
||||
anonClient, err := minio.NewCore(endpoint, "", "", secure)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user