浏览代码

MangaCoverFetcher: Use source's header for network request (#6847)

Ivan Iskandar 3 年之前
父节点
当前提交
5409af0a6c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt

@@ -141,7 +141,7 @@ class MangaCoverFetcher(
     private fun newRequest(): Request {
         val request = Request.Builder()
             .url(url)
-            .headers(options.headers)
+            .headers(sourceLazy.value?.headers ?: options.headers)
             // Support attaching custom data to the network request.
             .tag(Parameters::class.java, options.parameters)