MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getNumAuthorizations

Method getNumAuthorizations

Libraries/HttpClient/HttpClientSession.cpp:1094–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092 attributeValue = trimAsciiWhiteSpace(attributeValue);
1093 if (sessionAsciiEqualsIgnoreCase(attributeName, StringSpan("Domain")))
1094 {
1095 if (attributeValue.sizeInBytes() > 0 and attributeValue.toCharSpan()[0] == '.')
1096 {
1097 attributeValue = sliceString(attributeValue, 1, attributeValue.sizeInBytes());
1098 }
1099 if (attributeValue.isEmpty() or not cookieDomainAttributeMatches(attributeValue, parsed.host))
1100 {
1101 return Result(true);
1102 }
1103 domain = attributeValue;
1104 explicitDomain = true;
1105 }
1106 else if (sessionAsciiEqualsIgnoreCase(attributeName, StringSpan("Path")))
1107 {
1108 if (not attributeValue.isEmpty() and attributeValue.toCharSpan()[0] == '/' and
1109 isValidCookiePath(attributeValue))
1110 {
1111 path = attributeValue;
1112 }
1113 }

Callers 1

sessionLayerMethod · 0.80

Calls

no outgoing calls

Tested by 1

sessionLayerMethod · 0.64