Fix CloudflareKiller (remove cookies on init)

This commit is contained in:
Blatzar 2022-08-22 19:47:58 +02:00
parent 8862b103a7
commit 942c9541a2

View file

@ -23,6 +23,11 @@ class CloudflareKiller : Interceptor {
}
}
init {
// Needs to clear cookies between sessions to generate new cookies.
CookieManager.getInstance().removeAllCookies(null)
}
val savedCookies: MutableMap<String, Map<String, String>> = mutableMapOf()
override fun intercept(chain: Interceptor.Chain): Response = runBlocking {