From 1566b8f8b86059f6b7688b6ceb2c061fb411e82b Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 5 Apr 2018 19:12:17 +0200 Subject: [PATCH] Provide accept & accept-language to cloudflare --- .../java/eu/kanade/tachiyomi/network/CloudflareInterceptor.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/network/CloudflareInterceptor.kt b/app/src/main/java/eu/kanade/tachiyomi/network/CloudflareInterceptor.kt index 1a41d117f5..18a87170be 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/network/CloudflareInterceptor.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/network/CloudflareInterceptor.kt @@ -65,6 +65,8 @@ class CloudflareInterceptor : Interceptor { val cloudflareHeaders = originalRequest.headers() .newBuilder() .add("Referer", url.toString()) + .add("Accept", "text/html,application/xhtml+xml,application/xml") + .add("Accept-Language", "en") .build() return GET(cloudflareUrl, cloudflareHeaders, cache = CacheControl.Builder().build())