This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push: new 9bd3381386 0 - also indicates no modification date is available 9bd3381386 is described below commit 9bd3381386fb6f8836221e4d681591c78ae21bdf Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Dec 13 17:03:27 2024 +0000 0 - also indicates no modification date is available --- java/org/apache/catalina/servlets/DefaultServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java b/java/org/apache/catalina/servlets/DefaultServlet.java index 7d55cf1c3f..c9982054ea 100644 --- a/java/org/apache/catalina/servlets/DefaultServlet.java +++ b/java/org/apache/catalina/servlets/DefaultServlet.java @@ -2183,7 +2183,7 @@ public class DefaultServlet extends HttpServlet { } long resourceLastModified = resource.getLastModified(); - if (resourceLastModified <= -1) { + if (resourceLastModified <= 0) { // MUST ignore if the resource does not have a modification date available. return true; } @@ -2315,7 +2315,7 @@ public class DefaultServlet extends HttpServlet { WebResource resource) throws IOException { long resourceLastModified = resource.getLastModified(); - if (resourceLastModified <= -1) { + if (resourceLastModified <= 0) { // MUST ignore if the resource does not have a modification date available. return true; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org