Use default endpoint when not supplied

master
Remco Verhoef 8 years ago committed by Harshavardhana
parent 6508da5fde
commit 909a89647b
  1. 6
      cmd/gateway-gcs-layer.go

@ -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…
Cancel
Save