mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 19:52:56 +01:00
parent
79c88fd101
commit
3ae8dd67fa
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Mangahere'
|
||||
extClass = '.Mangahere'
|
||||
extVersionCode = 20
|
||||
extVersionCode = 21
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -36,7 +36,6 @@ class Mangahere : ParsedHttpSource() {
|
||||
|
||||
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
|
||||
.set("Referer", "$baseUrl/")
|
||||
.set("Cache-Control", "no-cache")
|
||||
|
||||
private val cookieInterceptor = CookieInterceptor(
|
||||
baseUrl.substringAfter("://"),
|
||||
@ -47,13 +46,6 @@ class Mangahere : ParsedHttpSource() {
|
||||
|
||||
private val notRateLimitClient: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.addNetworkInterceptor(cookieInterceptor)
|
||||
.addNetworkInterceptor { chain ->
|
||||
val newRequest = chain.request().newBuilder()
|
||||
.header("Cache-Control", "no-cache")
|
||||
.removeHeader("If-Modified-Since")
|
||||
.build()
|
||||
chain.proceed(newRequest)
|
||||
}
|
||||
.build()
|
||||
|
||||
override val client: OkHttpClient = notRateLimitClient.newBuilder()
|
||||
|
Loading…
Reference in New Issue
Block a user