pull/1857/head
kunfei 3 years ago
parent a78cfffa11
commit 2bc386fe86
  1. 4
      app/src/main/java/io/legado/app/help/glide/OkHttpStreamFetcher.kt

@ -39,9 +39,7 @@ class OkHttpStreamFetcher(private val url: GlideUrl, private val options: Option
}
val requestBuilder: Request.Builder = Request.Builder().url(url.toStringUrl())
val headerMap = HashMap<String, String>()
for ((key, value) in url.headers.entries) {
headerMap[key] = value
}
headerMap.putAll(url.headers)
options.get(OkHttpModelLoader.sourceOriginOption)?.let { sourceUrl ->
val source = appDb.bookSourceDao.getBookSource(sourceUrl)
?: appDb.rssSourceDao.getByKey(sourceUrl)

Loading…
Cancel
Save