Refine Cloudflare challenges detection
This commit is contained in:
1 parent
5422c04c53
commit
d98292da1d
3 files changed
+22
-19
No files matched your search
@@ -111,7 +111,6 @@ private fun rethrowExactly(code: Int, headers: Headers, body: String, e: Throwab
|
||||
|
||||
// Check bad response code
|
||||
if (code >= 400) {
|
||||
Log.d(TAG, "Code: $code\nHeaders: $headers\nBody: $body")
|
||||
throw StatusCodeException(code)
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.hippo.ehviewer.client.exception
|
||||
|
||||
class CloudflareBypassException : EhException("Failed to bypass Cloudflare")
|
||||
Reference in new issue
Block a user