diff --git a/src/all/imhentai/build.gradle b/src/all/imhentai/build.gradle index a534d852c..47c470a48 100644 --- a/src/all/imhentai/build.gradle +++ b/src/all/imhentai/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'IMHentai' pkgNameSuffix = 'all.imhentai' extClass = '.IMHentaiFactory' - extVersionCode = 12 + extVersionCode = 13 isNsfw = true } diff --git a/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt b/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt index dfde195ca..4d806ce98 100644 --- a/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt +++ b/src/all/imhentai/src/eu/kanade/tachiyomi/extension/all/imhentai/IMHentai.kt @@ -31,6 +31,13 @@ class IMHentai(override val lang: String, private val imhLang: String) : ParsedH override val client: OkHttpClient = network.cloudflareClient .newBuilder() + .addInterceptor { chain -> + val request = chain.request() + val headers = request.headers.newBuilder() + .removeAll("Accept-Encoding") + .build() + chain.proceed(request.newBuilder().headers(headers).build()) + } .addInterceptor( fun(chain): Response { val response = chain.proceed(chain.request())