fix: 修复私有资源下载鉴权与镜像重试 - #79
Merged
Merged
Conversation
Closed
3 tasks
wuziqian211
approved these changes
Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
关联 #76。
排查发现,部分资源返回
400 InvalidArgument并非源文件损坏,而是程序访问 private CDN 时的鉴权方式与官网不一致。当前程序即使设置了 Access Token,也只会修改请求头,没有向 private 下载 URL 附加
accessToken。因此,部分权限较严格的资源仍然无法下载。修改内容
accessToken查询参数;验证结果
补充说明
#76 评论中提到的“文件名过长”属于独立问题,本次 PR 仅处理 private CDN 鉴权、镜像重试和相关错误提示,不包含文件名处理逻辑。