Provide accept & accept-language to cloudflare

This commit is contained in:
inorichi 2018-04-05 19:12:17 +02:00
parent 4bbf78e840
commit 1566b8f8b8

View File

@ -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())