There was an error while loading. Please reload this page.
1 parent 33fb0ed commit f5cde7eCopy full SHA for f5cde7e
websocket-sharp/Net/Cookie.cs
@@ -870,6 +870,16 @@ internal bool EqualsWithoutValue (Cookie cookie)
870
&& _version == cookie._version;
871
}
872
873
+ internal bool EqualsWithoutValueAndVersion (Cookie cookie)
874
+ {
875
+ var caseSensitive = StringComparison.InvariantCulture;
876
+ var caseInsensitive = StringComparison.InvariantCultureIgnoreCase;
877
+
878
+ return _name.Equals (cookie._name, caseInsensitive)
879
+ && _path.Equals (cookie._path, caseSensitive)
880
+ && _domain.Equals (cookie._domain, caseInsensitive);
881
+ }
882
883
internal string ToRequestString (Uri uri)
884
{
885
if (_name.Length == 0)
0 commit comments