Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenjp committed Dec 10, 2024
1 parent 1127b87 commit be2c5d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions java/org/apache/catalina/servlets/DefaultServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,6 @@ protected boolean checkIfHeaders(HttpServletRequest request, HttpServletResponse
String ifRangeHeader = request.getHeader("If-Range");
String rangeHeader = request.getHeader("Range");

String resourceETag = generateETag(resource);
long resourceLastModified = resource.getLastModified();
// RFC9110 #13.3.2 defines preconditions evaluation order
int next = 1;
while (next < 6) {
Expand Down Expand Up @@ -910,12 +908,10 @@ protected void serveResource(HttpServletRequest request, HttpServletResponse res
// be needed later
String eTag = null;
String lastModifiedHttp = null;
long lastModified = -1;

if (resource.isFile() && !isError) {
eTag = generateETag(resource);
lastModifiedHttp = resource.getLastModifiedHttp();
lastModified = resource.getLastModified();
}

// Check if the conditions specified in the optional If headers are
Expand Down

0 comments on commit be2c5d5

Please sign in to comment.