Skip to content

Conversation

@xrgzs
Copy link
Member

@xrgzs xrgzs commented Jan 10, 2026

Description / 描述

  • 去除 OnlyProxy 限制,会获取重定向后的链接以支持302

  • 增加 driver.Config PreferProxy,默认推荐启用代理

  • Remove the OnlyProxy restriction and obtain the redirected link to support 302

  • Add driver.Config PreferProxy to recommend user to enable the proxy by default

Motivation and Context / 背景

部分网盘的 WebDAV 服务器为 302 跳转,跳转后的链接无需鉴权头部即可下载,无需 OpenList 代理

Closes #1950

How Has This Been Tested? / 测试

测试 Cloudreve V4、123 可使用

已知问题:之前挂载的存储不能自动设置为代理、默认创建的 WebDAV 存储代理相关选项为关 已增加相关驱动配置、迁移脚本

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

@xrgzs xrgzs added enhancement Module: Driver Driver-Related Issue/PR labels Jan 10, 2026
@xrgzs xrgzs changed the title feat(driver/webdav): add support for 302 redirects feat(drivers/webdav): add support for 302 redirects Jan 10, 2026
xrgzs added 5 commits January 10, 2026 20:37
Signed-off-by: MadDogOwner <[email protected]>
Signed-off-by: MadDogOwner <[email protected]>
Signed-off-by: MadDogOwner <[email protected]>
Signed-off-by: MadDogOwner <[email protected]>
Signed-off-by: MadDogOwner <[email protected]>
@xrgzs xrgzs merged commit c6bd437 into OpenListTeam:main Jan 11, 2026
12 checks passed
@xrgzs xrgzs deleted the feat/webdav-302 branch January 11, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Module: Driver Driver-Related Issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 希望对于WebDAV驱动的WebDAV策略增加302重定向

2 participants