Refine Cloudflare challenges detection

This commit is contained in:
FooIbar authored and tarsin committed 2023-08-04 05:46:51 +08:00
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")