From 9dfe3d97cc73ad7b40a363686f74f3d6f8449033 Mon Sep 17 00:00:00 2001 From: 821938089 <821938089@qq.com> Date: Sat, 9 Jul 2022 12:02:00 +0800 Subject: [PATCH] fix webdav download --- app/src/main/java/io/legado/app/lib/webdav/WebDav.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt b/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt index ced66ae09..571174a9c 100644 --- a/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt +++ b/app/src/main/java/io/legado/app/lib/webdav/WebDav.kt @@ -151,8 +151,9 @@ open class WebDav(val path: String, val authorization: Authorization) { .toInstant(ZoneOffset.of("+8")).toEpochMilli() } }.getOrNull() ?: 0 + val fullURL = NetworkUtils.getAbsoluteURL(baseUrl, href) webDavFile = WebDavFile( - "$baseUrl$href", + fullURL, authorization, displayName = fileName, urlName = urlName,