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'
|
||||
pkgNameSuffix = 'en.mangademon'
|
||||
extClass = '.MangaDemon'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,13 @@ class MangaDemon : ParsedHttpSource() {
|
|||
|
||||
override val client = network.cloudflareClient.newBuilder()
|
||||
.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)
|
||||
.build()
|
||||
|
||||
|
|
Loading…
Reference in New Issue