Merge pull request #1686 from rmcrackan/rmcrackan/empty-cookies

don't set cookies without values. Attempting to solve #1682
This commit is contained in:
rmcrackan authored and GitHub committed 2026-03-17 22:18:45 -04:00
commit a43a700e37
2 files changed
+4

No files matched your search

@@ -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));