mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-24 18:02:41 -04:00
Merge pull request #1686 from rmcrackan/rmcrackan/empty-cookies
don't set cookies without values. Attempting to solve #1682
This commit is contained in:
@@ -82,6 +82,8 @@ public class AvaloniaLoginChoiceEager : ILoginChoiceEager
|
||||
{
|
||||
foreach (System.Net.Cookie c in shoiceIn.SignInCookies ?? [])
|
||||
{
|
||||
if (string.IsNullOrEmpty(c.Value))
|
||||
continue;
|
||||
try
|
||||
{
|
||||
cookieManager.AddOrUpdateCookie(c);
|
||||
|
||||
@@ -41,6 +41,8 @@ public partial class WebLoginDialog : Form
|
||||
//Load init cookies
|
||||
foreach (System.Net.Cookie cookie in choiceIn.SignInCookies ?? [])
|
||||
{
|
||||
if (string.IsNullOrEmpty(cookie.Value))
|
||||
continue;
|
||||
try
|
||||
{
|
||||
webView.CoreWebView2.CookieManager.AddOrUpdateCookie(webView.CoreWebView2.CookieManager.CreateCookieWithSystemNetCookie(cookie));
|
||||
|
||||
Reference in New Issue
Block a user