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 240152b68..9aae08bdf 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 @@ -52,7 +52,7 @@ object HttpHelper { fun getBytes(url: String, referrer: String): ByteArray? { NetworkUtils.getBaseUrl(url)?.let { baseUrl -> val headers = - mapOf(Pair(AppConst.UA_NAME, AppConst.userAgent), Pair("Referrer", referrer)) + mapOf(Pair(AppConst.UA_NAME, AppConst.userAgent), Pair("Referer", referrer)) return getByteRetrofit(baseUrl) .create(HttpGetApi::class.java) .getMapByte(url, mapOf(), headers) @@ -132,4 +132,4 @@ object HttpHelper { webView.load(params) } -} \ No newline at end of file +}