Skip to content

Commit

Permalink
下载站生成的链接可能自带auth_key
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Aug 13, 2024
1 parent 013488e commit db033d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewLife.Core/Web/WebClientX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public virtual async Task<HttpContent> SendAsync(String address, HttpContent? co
String CheckAuth(String address)
{
// 增加CDN的URL验证
if (!AuthKey.IsNullOrEmpty())
if (!AuthKey.IsNullOrEmpty() && !address.Contains("auth_key="))
{
// http://DomainName/Filename?auth_key={<timestamp>-rand-uid-<md5hash>}
var uri = new Uri(address);
Expand Down

0 comments on commit db033d4

Please sign in to comment.