You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/12/06 16:14:02 UTC
(opendal) branch main updated: fix(services/obs): support huawei.com (#5399)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 9494b528d fix(services/obs): support huawei.com (#5399)
9494b528d is described below
commit 9494b528d3d50a97fa8a32f74fa7105f551bb738
Author: FayeSpica <fa...@outlook.com>
AuthorDate: Sat Dec 7 00:13:49 2024 +0800
fix(services/obs): support huawei.com (#5399)
---
core/src/services/obs/backend.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs
index 36f852da8..ea33bf7ec 100644
--- a/core/src/services/obs/backend.rs
+++ b/core/src/services/obs/backend.rs
@@ -173,7 +173,9 @@ 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)