Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

zoho: fix error when region isn't set

buengese0caf417779c3
diff --git a/backend/zoho/zoho.go b/backend/zoho/zoho.go
index f8a325469..1774335b5 100644
--- a/backend/zoho/zoho.go
+++ b/backend/zoho/zoho.go
@@ -161,7 +161,7 @@ type Object struct {
func setupRegion(m configmap.Mapper) {
region, ok := m.Get("region")
- if !ok {
+ if !ok || region == "" {
log.Fatalf("No region set\n")
}
rootURL = fmt.Sprintf("https://workdrive.zoho.%s/api/v1", region)