alist icon indicating copy to clipboard operation
alist copied to clipboard

fix: resolve USS driver problem

Open wangwuxuan2011 opened this issue 3 years ago • 4 comments

1.修复文件过多而导致的列表读取无响应的问题 2.修复文件下载url协议头的判断错误 3.整合CustomHost和Endpoint设置项,统一使用Endpoint表示又拍云存储加速域名

wangwuxuan2011 avatar Jan 07 '23 14:01 wangwuxuan2011

Thanks for opening this pull request! Please check out our contributing guidelines.

welcome[bot] avatar Jan 07 '23 14:01 welcome[bot]

可供测试: 存储桶test-20130107 Endpoint http://test-20130107.test.upcdn.net 操作员test 操作员密码PttD6UUVpT9c2knf0tBHJkIahYE2lQTl

备注:此Endpoint为又拍云仅供测试使用的加速域名,无法使用国内中国移动网络访问

wangwuxuan2011 avatar Jan 07 '23 14:01 wangwuxuan2011

刚刚看了一下代码,似乎第一个版本drivers/uss/driver.go的Link函数就有URL下载链接的协议头问题(if strings.Contains(host, "://"))🤣 已经有http/https协议头的链接仍会添加https协议头,没有协议头的反而不会添加🤣

wangwuxuan2011 avatar Jan 07 '23 15:01 wangwuxuan2011

这是把逻辑写反了🤣

foxxorcat avatar Jan 07 '23 16:01 foxxorcat

Congrats on merging your first pull request! We here at behavior bot are proud of you!

welcome[bot] avatar Jan 08 '23 08:01 welcome[bot]