mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Now request block only shows cookies that are actually received, not all of them.
This commit is contained in:
@@ -350,6 +350,7 @@ namespace RuriLib
|
||||
// Set base URL
|
||||
var localUrl = ReplaceValues(url, data);
|
||||
var cType = ReplaceValues(contentType, data);
|
||||
var oldJar = data.Cookies;
|
||||
|
||||
// Create request
|
||||
HttpRequest request = new HttpRequest();
|
||||
@@ -552,6 +553,9 @@ namespace RuriLib
|
||||
data.Cookies = response.Cookies;
|
||||
foreach (var cookie in response.Cookies)
|
||||
{
|
||||
// If the cookie was already present before, don't log it
|
||||
if (oldJar.ContainsKey(cookie.Key) && oldJar[cookie.Key] == cookie.Value) continue;
|
||||
|
||||
data.Log(new LogEntry(cookie.Key + ": " + cookie.Value, Colors.LightGoldenrodYellow));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user