mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-06-13 12:48:44 +02:00
22 lines
599 B
Kotlin
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)
|
|
}
|
|
}
|