This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new fd2ad0a4bd 0 - also indicates no modification date is available
fd2ad0a4bd is described below
commit fd2ad0a4bd322ded8a7be29c6cec94147459916d
Author: Mark Thomas <[email protected]>
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 7601348483..0822bffdb2 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -2242,7 +2242,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;
}
@@ -2374,7 +2374,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: [email protected]
For additional commands, e-mail: [email protected]