mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
fix oppsie, sync dependencies with tachiyomi
This commit is contained in:
@@ -58,8 +58,8 @@ dependencies {
|
|||||||
implementation("com.github.inorichi.injekt:injekt-core:65b0440")
|
implementation("com.github.inorichi.injekt:injekt-core:65b0440")
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.9.1")
|
implementation("com.squareup.okhttp3:okhttp:4.9.1")
|
||||||
implementation("io.reactivex:rxjava:1.3.8")
|
implementation("io.reactivex:rxjava:1.3.8")
|
||||||
implementation("org.jsoup:jsoup:1.13.1")
|
implementation("org.jsoup:jsoup:1.14.1")
|
||||||
implementation("com.google.code.gson:gson:2.8.6")
|
implementation("com.google.code.gson:gson:2.8.7")
|
||||||
implementation("com.github.salomonbrys.kotson:kotson:2.5.0")
|
implementation("com.github.salomonbrys.kotson:kotson:2.5.0")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class CloudflareInterceptor : Interceptor {
|
|||||||
val response = chain.proceed(chain.request())
|
val response = chain.proceed(chain.request())
|
||||||
|
|
||||||
// Check if Cloudflare anti-bot is on
|
// 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..." }
|
logger.debug { "CloudflareInterceptor is kicking in..." }
|
||||||
return try {
|
return try {
|
||||||
chain.proceed(resolveChallenge(response))
|
chain.proceed(resolveChallenge(response))
|
||||||
|
|||||||
Reference in New Issue
Block a user