fix oppsie, sync dependencies with tachiyomi

This commit is contained in:
Aria Moradi
2021-08-23 05:27:39 +04:30
parent 756c57a16e
commit a14a82bc9a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ dependencies {
implementation("com.github.inorichi.injekt:injekt-core:65b0440")
implementation("com.squareup.okhttp3:okhttp:4.9.1")
implementation("io.reactivex:rxjava:1.3.8")
implementation("org.jsoup:jsoup:1.13.1")
implementation("com.google.code.gson:gson:2.8.6")
implementation("org.jsoup:jsoup:1.14.1")
implementation("com.google.code.gson:gson:2.8.7")
implementation("com.github.salomonbrys.kotson:kotson:2.5.0")
@@ -28,7 +28,7 @@ class CloudflareInterceptor : Interceptor {
val response = chain.proceed(chain.request())
// Check if Cloudflare anti-bot is on
if (response.code in listOf(403, 503) && response.header("Server") in serverCheck) {
if (response.code != 503 && response.header("Server") in serverCheck) {
logger.debug { "CloudflareInterceptor is kicking in..." }
return try {
chain.proceed(resolveChallenge(response))