HttpRequest::conditional() const
{
return flags.ims ||
- header.has(HDR_IF_MATCH) ||
- header.has(HDR_IF_NONE_MATCH);
+ header.has(HDR_IF_MATCH) ||
+ header.has(HDR_IF_NONE_MATCH);
}
bool HttpRequest::inheritProperties(const HttpMsg *aMsg)
clientReplyContext::sendNotModifiedOrPreconditionFailedError()
{
if (http->request->method == METHOD_GET ||
- http->request->method == METHOD_HEAD)
+ http->request->method == METHOD_HEAD)
sendNotModified();
else
sendPreconditionFailedError();
const String reqETags = request.header.getList(HDR_IF_NONE_MATCH);
// weak comparison is allowed only for HEAD or full-body GET requests
const bool allowWeakMatch = !request.flags.range &&
- (request.method == METHOD_GET || request.method == METHOD_HEAD);
+ (request.method == METHOD_GET || request.method == METHOD_HEAD);
return hasOneOfEtags(reqETags, allowWeakMatch);
}
ETag reqETag;
if (etagParseInit(&reqETag, str.termedBuf())) {
matched = allowWeakMatch ? etagIsWeakEqual(repETag, reqETag) :
- etagIsStrongEqual(repETag, reqETag);
+ etagIsStrongEqual(repETag, reqETag);
}
}
}