webdav direct proxy

This commit is contained in:
Xhofe
2022-02-13 15:57:42 +08:00
parent 7bb237d0ef
commit 4371c470b3
8 changed files with 124 additions and 103 deletions

View File

@ -111,6 +111,13 @@ func GetDrivers() map[string][]Item {
Required: true,
Description: "Transfer the WebDAV of this account through the server",
},
{
Name: "webdav_direct",
Label: "webdav direct",
Type: TypeBool,
Required: true,
Description: "Transfer the WebDAV of this account through the native",
},
}, v.Items()...)
}
res[k] = append([]Item{

View File

@ -44,7 +44,8 @@ type Header struct {
}
type Link struct {
Url string `json:"url"`
Headers []Header `json:"headers"`
Data io.ReadCloser
Url string `json:"url"`
Headers []Header `json:"headers"`
Data io.ReadCloser
FilePath string `json:"path"` // for native
}