mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-26 07:06:03 +03:00
Provide accept & accept-language to cloudflare
This commit is contained in:
parent
4bbf78e840
commit
1566b8f8b8
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ class CloudflareInterceptor : Interceptor {
|
||||||
val cloudflareHeaders = originalRequest.headers()
|
val cloudflareHeaders = originalRequest.headers()
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
.add("Referer", url.toString())
|
.add("Referer", url.toString())
|
||||||
|
.add("Accept", "text/html,application/xhtml+xml,application/xml")
|
||||||
|
.add("Accept-Language", "en")
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
return GET(cloudflareUrl, cloudflareHeaders, cache = CacheControl.Builder().build())
|
return GET(cloudflareUrl, cloudflareHeaders, cache = CacheControl.Builder().build())
|
||||||
|
|
Loading…
Reference in a new issue