mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix exception (#819)
This commit is contained in:
parent
10a477c2bd
commit
ff9144ef54
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ class CloudflareKiller : Interceptor {
|
||||||
if(!(response.header("Server") in CLOUDFLARE_SERVERS && response.code in ERROR_CODES)) {
|
if(!(response.header("Server") in CLOUDFLARE_SERVERS && response.code in ERROR_CODES)) {
|
||||||
return@runBlocking response
|
return@runBlocking response
|
||||||
} else {
|
} else {
|
||||||
|
response.close()
|
||||||
bypassCloudflare(request)?.let {
|
bypassCloudflare(request)?.let {
|
||||||
Log.d(TAG, "Succeeded bypassing cloudflare: ${request.url}")
|
Log.d(TAG, "Succeeded bypassing cloudflare: ${request.url}")
|
||||||
return@runBlocking it
|
return@runBlocking it
|
||||||
|
|
Loading…
Reference in a new issue