Manga Demon: Fix "Failed to update dynamic url suffix" (#19032)
Remove Accept-Encoding header
This commit is contained in:
parent
151a64639b
commit
824c0e44fa
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Manga Demon'
|
extName = 'Manga Demon'
|
||||||
pkgNameSuffix = 'en.mangademon'
|
pkgNameSuffix = 'en.mangademon'
|
||||||
extClass = '.MangaDemon'
|
extClass = '.MangaDemon'
|
||||||
extVersionCode = 6
|
extVersionCode = 7
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,13 @@ class MangaDemon : ParsedHttpSource() {
|
||||||
|
|
||||||
override val client = network.cloudflareClient.newBuilder()
|
override val client = network.cloudflareClient.newBuilder()
|
||||||
.rateLimit(1)
|
.rateLimit(1)
|
||||||
|
.addInterceptor { chain ->
|
||||||
|
val request = chain.request()
|
||||||
|
val headers = request.headers.newBuilder()
|
||||||
|
.removeAll("Accept-Encoding")
|
||||||
|
.build()
|
||||||
|
chain.proceed(request.newBuilder().headers(headers).build())
|
||||||
|
}
|
||||||
.addInterceptor(::dynamicUrlInterceptor)
|
.addInterceptor(::dynamicUrlInterceptor)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue