remm 2004/02/27 07:06:54 Modified: catalina/src/share/org/apache/catalina/servlets DefaultServlet.java Log: - Bug 27293: Fix if-unmodified-since check, using the old-and-simple trick of adding 1000. Revision Changes Path 1.20 +2 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java Index: DefaultServlet.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- DefaultServlet.java 27 Feb 2004 14:58:46 -0000 1.19 +++ DefaultServlet.java 27 Feb 2004 15:06:54 -0000 1.20 @@ -1825,7 +1825,7 @@ long lastModified = resourceInfo.date; long headerValue = request.getDateHeader("If-Unmodified-Since"); if (headerValue != -1) { - if ( lastModified > headerValue ) { + if ( lastModified > (headerValue + 1000)) { // The entity has not been modified since the date // specified by the client. This is not an error case. response.sendError(HttpServletResponse.SC_PRECONDITION_FAILED);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]