feat(drivers/webdav): add support for 302 redirects (#1952)

* 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

---------

Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
This commit is contained in:
MadDogOwner
2026-01-11 15:15:42 +08:00
committed by GitHub
parent e192149480
commit c6bd437242
10 changed files with 95 additions and 14 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ var config = driver.Config{
Name: "123Pan",
DefaultRoot: "0",
LocalSort: true,
PreferProxy: true,
}
func init() {
@@ -28,7 +29,7 @@ func init() {
return &Pan123{
Addition: Addition{
UploadThread: 3,
Platform: "web",
Platform: "web",
},
}
})