cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/http HttpEnvironment.java
Date Mon, 26 May 2003 07:45:42 GMT
cziegeler    2003/05/26 00:45:42

  Modified:    src/java/org/apache/cocoon/environment/http
                        HttpEnvironment.java
  Log:
  Applying patch "304 Not Modified" not working by Volker Schmitt (volker.schmitt@basf-it-services.com)
  
  Revision  Changes    Path
  1.9       +2 -2      cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
  
  Index: HttpEnvironment.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HttpEnvironment.java	16 May 2003 07:04:56 -0000	1.8
  +++ HttpEnvironment.java	26 May 2003 07:45:42 -0000	1.9
  @@ -250,7 +250,7 @@
           if (lastModified != 0) {
               long if_modified_since = this.request.getDateHeader("If-Modified-Since");
               this.response.setDateHeader("Last-Modified", lastModified);
  -            return (if_modified_since < lastModified);
  +            return (if_modified_since / 1000 < lastModified  / 1000);
           }
           return true;
       }
  
  
  

Mime
View raw message