cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r654677 - /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java
Date Fri, 09 May 2008 03:52:57 GMT
Author: joerg
Date: Thu May  8 20:52:57 2008
New Revision: 654677

URL: http://svn.apache.org/viewvc?rev=654677&view=rev
Log:
Restore changes of revision 155099: 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/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java?rev=654677&r1=654676&r2=654677&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/reading/ResourceReader.java
Thu May  8 20:52:57 2008
@@ -202,12 +202,11 @@
         } catch (SourceException e) {
             throw SourceUtil.handle("Error during resolving of '" + src + "'.", e);
         }
-
         setupHeaders();
     }
 
     /**
-     * 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
@@ -222,11 +221,6 @@
         } else if (expires == 0) {
             response.setDateHeader("Expires", 0);
         }
-
-        long lastModified = getLastModified();
-        if (lastModified > 0) {
-            response.setDateHeader("Last-Modified", lastModified);
-        }
     }
 
     /**
@@ -410,7 +404,6 @@
                 return mimeType;
             }
         }
-
         return inputSource.getMimeType();
     }
 }



Mime
View raw message