diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index 3952cf480..1705b1a50 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -51,9 +51,9 @@ class AnalyzeUrl( private set var path: String? = null private set + val headerMap = HashMap() private var queryStr: String? = null private val fieldMap = LinkedHashMap() - private val headerMap = HashMap() private var charset: String? = null private var bodyTxt: String? = null private var body: RequestBody? = null diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt index 3a5dd609a..928f8b04e 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt @@ -83,10 +83,7 @@ class ReadRssActivity : VMBaseActivity(R.layout.activity_rss_r } }) viewModel.urlLiveData.observe(this, Observer { - webView.settings.apply { - - } - webView.loadUrl(it.url) + webView.loadUrl(it.url, it.headerMap) }) }