mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix CloudflareKiller (remove cookies on init)
This commit is contained in:
parent
8862b103a7
commit
942c9541a2
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue