Skip to content

Commit f5cde7e

Browse files
committed
[Modify] Add it
1 parent 33fb0ed commit f5cde7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

websocket-sharp/Net/Cookie.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,16 @@ internal bool EqualsWithoutValue (Cookie cookie)
870870
&& _version == cookie._version;
871871
}
872872

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+
873883
internal string ToRequestString (Uri uri)
874884
{
875885
if (_name.Length == 0)

0 commit comments

Comments
 (0)