mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-18 10:13:33 -05:00
Update dependency io.javalin:javalin to v6 (#1152)
* Update dependency io.javalin:javalin to v6 * Simple compile fixes * Simple compile fixes pass 2 * Add results to futures * Setup jetty server and api routes * Setup Cors * Setup basic auth * Documentation stubs * Replace chapter mutex cache * Fix compile * Disable Jetty Logging --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Syer10 <syer10@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ import eu.kanade.tachiyomi.source.local.LocalSource
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.model.UpdateStrategy
|
||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||
import io.javalin.http.HttpCode
|
||||
import io.javalin.http.HttpStatus
|
||||
import mu.KLogger
|
||||
import mu.KotlinLogging
|
||||
import okhttp3.CacheControl
|
||||
@@ -305,9 +305,9 @@ object Manga {
|
||||
val tryToRefreshUrl =
|
||||
!refreshUrl &&
|
||||
listOf(
|
||||
HttpCode.GONE.status,
|
||||
HttpCode.MOVED_PERMANENTLY.status,
|
||||
HttpCode.NOT_FOUND.status,
|
||||
HttpStatus.GONE.code,
|
||||
HttpStatus.MOVED_PERMANENTLY.code,
|
||||
HttpStatus.NOT_FOUND.code,
|
||||
523, // (Cloudflare) Origin Is Unreachable
|
||||
522, // (Cloudflare) Connection timed out
|
||||
).contains(e.code)
|
||||
|
||||
Reference in New Issue
Block a user