fix(driver): fix file copy failure to 123pan due to incorrect etag #1874
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.
#1739 (comment)
描述
此 PR 修复了从百度网盘跨存储复制大文件时,某些驱动在最后合并阶段(complete)失败的问题。
源存储元数据提供的 Etag/MD5 与文件实际数据流的标准 MD5 不一致。由于 123 云盘 API 在合并分片时指纹不匹配会导致服务器直接报错“文件上传失败”。
主要更改:
删除Hashinfo
测试
7968...与真实值f167...不符)。Checklist / 检查清单
go fmtor prettier.