if (etag != null || lastModified != null)
{
if (etag != null && lastModified != null)
{
validationHeaders = new Header[2];
validationHeaders[0] = new Header("If-Modified-Since", lastModified);
validationHeaders[1] = new Header("If-None-Match", etag);
}
else if (etag != null)
{
validationHeaders = new Header[1];
validationHeaders[0] = new Header("If-None-Match", etag);
}
else if (lastModified != null)
{
validationHeaders = new Header[1];
validationHeaders[0] = new Header("If-Modified-Since", lastModified);
}
}
}