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

(cherry picked from commit 5409af0a6c858bb32353b3fc42214d8d345f9f08)
This commit is contained in:
Ivan Iskandar 2022-04-02 19:44:01 +07:00 committed by Jobobby04
parent 9878e0025a
commit c377afac2e

View File

@ -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)