parent
f9899ca41f
commit
0a597ad95c
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'IMHentai'
|
extName = 'IMHentai'
|
||||||
pkgNameSuffix = 'all.imhentai'
|
pkgNameSuffix = 'all.imhentai'
|
||||||
extClass = '.IMHentaiFactory'
|
extClass = '.IMHentaiFactory'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,13 @@ class IMHentai(override val lang: String, private val imhLang: String) : ParsedH
|
||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient
|
override val client: OkHttpClient = network.cloudflareClient
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
|
.addInterceptor { chain ->
|
||||||
|
val request = chain.request()
|
||||||
|
val headers = request.headers.newBuilder()
|
||||||
|
.removeAll("Accept-Encoding")
|
||||||
|
.build()
|
||||||
|
chain.proceed(request.newBuilder().headers(headers).build())
|
||||||
|
}
|
||||||
.addInterceptor(
|
.addInterceptor(
|
||||||
fun(chain): Response {
|
fun(chain): Response {
|
||||||
val response = chain.proceed(chain.request())
|
val response = chain.proceed(chain.request())
|
||||||
|
|
Loading…
Reference in New Issue