while (node) {
HttpHdrScTarget *sct = (HttpHdrScTarget *)node->data;
- if (target && sct->target.defined() && !strcmp (target, sct->target.termedBuf()))
+ if (target && sct->target.size() > 0 && !strcmp(target, sct->target.termedBuf()))
return sct;
- else if (!target && sct->target.undefined())
+ else if (!target && sct->target.size() == 0)
return sct;
node = node->next;
two = otherRep->header.getStrOrList(HDR_ETAG);
- if (one.undefined() || two.undefined() || one.caseCmp(two)!=0 ) {
+ if (one.size()==0 || two.size()==0 || one.caseCmp(two)!=0 ) {
one.clean();
two.clean();
return 0;
two = otherRep->header.getStrOrList(HDR_CONTENT_MD5);
- if (one.undefined() || two.undefined() || one.caseCmp(two) != 0 ) {
+ if (one.size()==0 || two.size()==0 || one.caseCmp(two)!=0 ) {
one.clean();
two.clean();
return 0;
bool
ACLHTTPHeaderData::empty() const
{
- return (hdrId == HDR_BAD_HDR && hdrName.undefined()) || regex_rule->empty();
+ return (hdrId == HDR_BAD_HDR && hdrName.size()==0) || regex_rule->empty();
}
ACLData<HttpHeader*> *
bool
ACLNoteData::empty() const
{
- return name.undefined();
+ return name.size() == 0;
}
ACLData<HttpRequest *> *
int l;
size_t t;
- if (str_type_eq.undefined()) //hack. String doesn't support global-static
+ if (str_type_eq.size()==0) //hack. String doesn't support global-static
str_type_eq="type=";
if ((t = request->urlpath.rfind(';')) != String::npos) {
const bool ccMustRevalidate = (rep->cache_control->proxyRevalidate() || rep->cache_control->mustRevalidate());
// CC:no-cache (only if there are no parameters)
- const bool ccNoCacheNoParams = (rep->cache_control->hasNoCache() && rep->cache_control->noCache().undefined());
+ const bool ccNoCacheNoParams = (rep->cache_control->hasNoCache() && rep->cache_control->noCache().size()==0);
// CC:s-maxage=N
const bool ccSMaxAge = rep->cache_control->hasSMaxAge();
MemObject *mem = e->mem_obj;
HttpReply const *reply;
- if (str_unknown.undefined())
+ if (str_unknown.size()==0)
str_unknown="unknown"; //hack. Delay initialization as string doesn't support global variables..
if (NULL == storelog)