This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new d4afa27d8a 0 - also indicates no modification date is available d4afa27d8a is described below commit d4afa27d8a54193e33418a2aa53fe7869db0aa9d 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 1bc645d150..a1ba25843a 100644 --- a/java/org/apache/catalina/servlets/DefaultServlet.java +++ b/java/org/apache/catalina/servlets/DefaultServlet.java @@ -2306,7 +2306,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; } @@ -2438,7 +2438,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