diff --git a/src/en/mangademon/build.gradle b/src/en/mangademon/build.gradle index 1098a1eac..b72cd076c 100644 --- a/src/en/mangademon/build.gradle +++ b/src/en/mangademon/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Manga Demon' pkgNameSuffix = 'en.mangademon' extClass = '.MangaDemon' - extVersionCode = 6 + extVersionCode = 7 isNsfw = false } diff --git a/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt b/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt index dd674ac17..7bc58ff3b 100644 --- a/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt +++ b/src/en/mangademon/src/eu/kanade/tachiyomi/extension/en/mangademon/MangaDemon.kt @@ -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()