cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r654675 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java
Date Fri, 09 May 2008 03:46:32 GMT
Author: joerg
Date: Thu May  8 20:46:32 2008
New Revision: 654675

URL: http://svn.apache.org/viewvc?rev=654675&view=rev
Log:
Restore changes of revision 155087: Remove Last-Modified header initialization: this is done
in the environment by request from AbstractProcessingPipeline. (http://marc.info/?l=xml-cocoon-dev&m=120477652124530&w=4)

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java?rev=654675&r1=654674&r2=654675&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/reading/ResourceReader.java Thu
May  8 20:46:32 2008
@@ -159,7 +159,7 @@
     }
 
     /**
-     * Setup the response headers: Accept-Ranges, Expires, Last-Modified
+     * Setup the response headers: Accept-Ranges, Expires
      */
     protected void setupHeaders() {
         // Tell the client whether we support byte range requests or not
@@ -174,11 +174,6 @@
         } else if (expires == 0) {
             response.setDateHeader("Expires", 0);
         }
-
-        long lastModified = getLastModified(); 
-        if (lastModified > 0) { 
-            response.setDateHeader("Last-Modified", lastModified); 
-        }
     }
 
     /**



Mime
View raw message