Null cookie value fix
Issue found during testing using Edge while cookie value
was empty - interpreted as null. Getting string of null was
failing.
@@ -222,7 +222,11 @@ public static Cookie FromDictionary(Dictionary<string, object> rawCookie)
}
string name = rawCookie["name"].ToString();
- string value = rawCookie["value"].ToString();
+ string value = string.Empty;
+ if (rawCookie["value"] != null)
+ {
+ value = rawCookie["value"].ToString();
+ }
string path = "/";
if (rawCookie.ContainsKey("path") && rawCookie["path"] != null)
