Skip to content

Commit

Permalink
fix(services/obs): support huawei.com (#5399)
Browse files Browse the repository at this point in the history
  • Loading branch information
FayeSpica authored Dec 6, 2024
1 parent 2c2d826 commit 9494b52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/services/obs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9494b52

Please sign in to comment.