Skip to content

Commit

Permalink
feat: change default uc host
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Sep 19, 2024
1 parent e72a3fd commit 2f7479b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Qiniu/Storage/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Config
/// <summary>
/// 默认空间管理域名
/// </summary>
public static string DefaultUcHost = "uc.qbox.me";
public static string DefaultUcHost = "uc.qiniuapi.com";
/// <summary>
/// 默认查询区域域名
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/QiniuTests/Storage/ConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public void UcHostTest()
{
Config config = new Config();
string ucHost = config.UcHost();
Assert.AreEqual("http://uc.qbox.me", ucHost);
Assert.AreEqual("http://uc.qiniuapi.com", ucHost);
config.SetUcHost("uc.example.com");
ucHost = config.UcHost();
Assert.AreEqual("http://uc.example.com", ucHost);

config = new Config();
config.UseHttps = true;
ucHost = config.UcHost();
Assert.AreEqual("https://uc.qbox.me", ucHost);
Assert.AreEqual("https://uc.qiniuapi.com", ucHost);
config.SetUcHost("uc.example.com");
ucHost = config.UcHost();
Assert.AreEqual("https://uc.example.com", ucHost);
Expand Down

0 comments on commit 2f7479b

Please sign in to comment.