Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PathMatch()

static bool System.Net.CookieContainer.PathMatch ( string requestPath,
string cookiePath )
inlinestaticprivate

Definition at line 712 of file CookieContainer.cs.

713 {
714 cookiePath = CookieParser.CheckQuoted(cookiePath);
715 if (!requestPath.StartsWith(cookiePath, StringComparison.Ordinal))
716 {
717 return false;
718 }
719 if (requestPath.Length != cookiePath.Length && (cookiePath.Length <= 0 || cookiePath[^1] != '/'))
720 {
721 return requestPath[cookiePath.Length] == '/';
722 }
723 return true;
724 }

References System.Net.CookieParser.CheckQuoted().

Referenced by System.Net.CookieContainer.BuildCookieCollectionFromDomainMatches().