tachiyomi-extensions-inspector/inspector/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt
2023-09-14 22:24:21 -04:00

22 lines
599 B
Kotlin

package eu.kanade.tachiyomi.network.interceptor
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import okhttp3.Interceptor
import okhttp3.Response
class CloudflareInterceptor() : Interceptor {
@Synchronized
override fun intercept(chain: Interceptor.Chain): Response {
val originalRequest = chain.request()
return chain.proceed(originalRequest)
}
}