From 0fe1fa207515765ef3edf3e6bc24bda2c2e93fc9 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 15 Nov 2020 13:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/NetworkUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/utils/NetworkUtils.kt b/app/src/main/java/io/legado/app/utils/NetworkUtils.kt index d08e4a450..d5464c6aa 100644 --- a/app/src/main/java/io/legado/app/utils/NetworkUtils.kt +++ b/app/src/main/java/io/legado/app/utils/NetworkUtils.kt @@ -80,7 +80,7 @@ object NetworkUtils { fun getAbsoluteURL(baseURL: String?, relativePath: String?): String? { if (baseURL.isNullOrEmpty()) return relativePath if (relativePath.isNullOrEmpty()) return baseURL - if (relativePath.isAbsUrl()) return baseURL + if (relativePath.isAbsUrl()) return relativePath var relativeUrl = relativePath try { val absoluteUrl = URL(baseURL.substringBefore(","))