From d1c724e6be04d712fba42f52904054b102d396d5 Mon Sep 17 00:00:00 2001 From: FayeSpica Date: Fri, 6 Dec 2024 20:45:57 +0800 Subject: [PATCH] fix(services/obs): support huawei.com --- core/src/services/obs/backend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs index 82a41a192c15..b2da53c23bc4 100644 --- a/core/src/services/obs/backend.rs +++ b/core/src/services/obs/backend.rs @@ -172,7 +172,7 @@ impl Builder for ObsBuilder { let (endpoint, is_obs_default) = { let host = uri.host().unwrap_or_default().to_string(); - if host.starts_with("obs.") && host.ends_with(".myhuaweicloud.com") { + if host.starts_with("obs.") && (host.ends_with(".myhuaweicloud.com") || host.ends_with(".huawei.com")) { (format!("{bucket}.{host}"), true) } else { (host, false)