mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Clean code Improve network image download to the local
This commit is contained in:
parent
f535a13372
commit
082e4a9ca9
2 changed files with 12 additions and 43 deletions
|
|
@ -100,8 +100,7 @@ func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err
|
|||
}
|
||||
}
|
||||
|
||||
browserClient := util.CreateCustomReqClient().
|
||||
EnableInsecureSkipVerify() // 添加了自定义TLS指纹, 可以完成对于CDN的资源下载
|
||||
browserClient := util.NewCustomReqClient() // 自定义了 TLS 指纹,增加下载成功率
|
||||
|
||||
forbiddenCount := 0
|
||||
destNodes := getRemoteAssetsLinkDestsInTree(tree, onlyImg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue