diff --git a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt index 9aae08bdf..8879e19b9 100644 --- a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt +++ b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt @@ -49,10 +49,10 @@ object HttpHelper { return null } - fun getBytes(url: String, referrer: String): ByteArray? { + fun getBytes(url: String, referer: String): ByteArray? { NetworkUtils.getBaseUrl(url)?.let { baseUrl -> val headers = - mapOf(Pair(AppConst.UA_NAME, AppConst.userAgent), Pair("Referer", referrer)) + mapOf(Pair(AppConst.UA_NAME, AppConst.userAgent), Pair("Referer", referer)) return getByteRetrofit(baseUrl) .create(HttpGetApi::class.java) .getMapByte(url, mapOf(), headers)