Skip to content

Commit

Permalink
Fix: replace tabs with spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 16, 2013
1 parent 28631ec commit 476c13b
Showing 1 changed file with 16 additions and 16 deletions.
Expand Up @@ -556,8 +556,8 @@ private boolean explicitFreshnessRequest(final HttpRequest request, final HttpCa
long age = this.validityPolicy.getCurrentAgeSecs(entry, now);
long lifetime = this.validityPolicy.getFreshnessLifetimeSecs(entry);
if (age - lifetime > maxstale) {
return true;
}
return true;
}
} catch (NumberFormatException nfe) {
return true;
}
Expand Down Expand Up @@ -617,16 +617,16 @@ boolean clientRequestsOurOptions(final HttpRequest request) {
RequestLine line = request.getRequestLine();

if (!HeaderConstants.OPTIONS_METHOD.equals(line.getMethod())) {
return false;
}
return false;
}

if (!"*".equals(line.getUri())) {
return false;
}
return false;
}

if (!"0".equals(request.getFirstHeader(HeaderConstants.MAX_FORWARDS).getValue())) {
return false;
}
return false;
}

return true;
}
Expand Down Expand Up @@ -668,8 +668,8 @@ private boolean revalidationResponseIsTooOld(final HttpResponse backendResponse,
Date entryDate = DateUtils.parseDate(entryDateHeader.getValue());
Date respDate = DateUtils.parseDate(responseDateHeader.getValue());
if (respDate.before(entryDate)) {
return true;
}
return true;
}
} catch (DateParseException e) {
// either backend response or cached entry did not have a valid
// Date header, so we can't tell if they are out of order
Expand Down Expand Up @@ -980,16 +980,16 @@ private boolean alreadyHaveNewerCacheEntry(final HttpHost target, final HttpRequ
// nop
}
if (existing == null) {
return false;
}
return false;
}
Header entryDateHeader = existing.getFirstHeader("Date");
if (entryDateHeader == null) {
return false;
}
return false;
}
Header responseDateHeader = backendResponse.getFirstHeader("Date");
if (responseDateHeader == null) {
return false;
}
return false;
}
try {
Date entryDate = DateUtils.parseDate(entryDateHeader.getValue());
Date responseDate = DateUtils.parseDate(responseDateHeader.getValue());
Expand Down

0 comments on commit 476c13b

Please sign in to comment.