This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 7ca62db004 0 - also indicates no modification date is available
7ca62db004 is described below
commit 7ca62db0047cc121b2aa9fff3caa28f8e9ef600c
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 f08e748ed3..15bb86f06c 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -2168,7 +2168,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;
}
@@ -2300,7 +2300,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]