mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-08-28 19:56:41 +08:00
Update storage/webdav/webdav.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -105,6 +105,7 @@ func (w *Webdav) ListFiles(ctx context.Context, dirPath string) ([]storagetypes.
|
|||||||
// Parse the href to get the file name
|
// Parse the href to get the file name
|
||||||
decodedHref, err := url.PathUnescape(resp.Href)
|
decodedHref, err := url.PathUnescape(resp.Href)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
w.logger.Warnf("Failed to unescape href %q: %v; using original value", resp.Href, err)
|
||||||
decodedHref = resp.Href
|
decodedHref = resp.Href
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user