From 5409af0a6c858bb32353b3fc42214d8d345f9f08 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sat, 2 Apr 2022 19:44:01 +0700 Subject: [PATCH] MangaCoverFetcher: Use source's header for network request (#6847) --- .../java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt b/app/src/main/java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt index 49be61061..c8850b1a4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/coil/MangaCoverFetcher.kt +++ b/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)