mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Another attempt at fixing the previous issue, HttpClient was giving 403 on cookies reuse.
This commit is contained in:
@@ -105,7 +105,7 @@ namespace RuriLib
|
||||
|
||||
CookieContainer cookies = new CookieContainer();
|
||||
foreach (var cookie in data.Cookies)
|
||||
cookies.Add(new Cookie(cookie.Key, cookie.Value));
|
||||
cookies.Add(uri, new Cookie(cookie.Key, cookie.Value));
|
||||
|
||||
if (data.UseProxies)
|
||||
{
|
||||
@@ -150,6 +150,13 @@ namespace RuriLib
|
||||
if (data.HasClearance)
|
||||
{
|
||||
data.Log(new LogEntry("Skipping CF Bypass because there is already a valid cookie", Colors.White));
|
||||
|
||||
// Blockception!
|
||||
BlockRequest req = new BlockRequest();
|
||||
req.Method = Extreme.Net.HttpMethod.GET;
|
||||
req.Url = localUrl;
|
||||
req.Process(data);
|
||||
return;
|
||||
}
|
||||
else // Otherwise solve the CF challenge
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user