Skip to content

Commit

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

0 comments on commit d1c724e

Please sign in to comment.