mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
I'm an idiot, forgot to null the cookies
This commit is contained in:
@@ -108,6 +108,7 @@ public class Rainbet : IDisposable
|
|||||||
if (response.Headers.Contains("cf-mitigated"))
|
if (response.Headers.Contains("cf-mitigated"))
|
||||||
{
|
{
|
||||||
_logger.Error("Hit a Cloudflare challenge, cookies expired? Marking cookies as null so it'll refresh next time we run");
|
_logger.Error("Hit a Cloudflare challenge, cookies expired? Marking cookies as null so it'll refresh next time we run");
|
||||||
|
_cookies = null;
|
||||||
throw new Exception("Cloudflare challenged");
|
throw new Exception("Cloudflare challenged");
|
||||||
}
|
}
|
||||||
var bets = await response.Content.ReadFromJsonAsync<List<RainbetBetHistoryModel>>(cancellationToken: _cancellationToken);
|
var bets = await response.Content.ReadFromJsonAsync<List<RainbetBetHistoryModel>>(cancellationToken: _cancellationToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user