pull/49/head
kunfei 5 years ago
parent 2c7f2af0fa
commit 1077e415e7
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt
  2. 5
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -51,9 +51,9 @@ class AnalyzeUrl(
private set
var path: String? = null
private set
val headerMap = HashMap<String, String>()
private var queryStr: String? = null
private val fieldMap = LinkedHashMap<String, String>()
private val headerMap = HashMap<String, String>()
private var charset: String? = null
private var bodyTxt: String? = null
private var body: RequestBody? = null

@ -83,10 +83,7 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
}
})
viewModel.urlLiveData.observe(this, Observer {
webView.settings.apply {
}
webView.loadUrl(it.url)
webView.loadUrl(it.url, it.headerMap)
})
}

Loading…
Cancel
Save