Drop support for Android 5.x

This commit is contained in:
arkon
2021-04-19 15:29:00 -04:00
parent 6aff438a16
commit 89619b7836
15 changed files with 40 additions and 81 deletions
@@ -114,10 +114,7 @@ class CloudflareInterceptor(private val context: Context) : Interceptor {
latch.countDown()
}
// HTTP error codes are only received since M
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
url == origRequestUrl && !challengeFound
) {
if (url == origRequestUrl && !challengeFound) {
// The first request didn't return the challenge, abort.
latch.countDown()
}