You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2008/06/13 16:20:30 UTC
svn commit: r667552 -
/cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
Author: reinhard
Date: Fri Jun 13 07:20:30 2008
New Revision: 667552
URL: http://svn.apache.org/viewvc?rev=667552&view=rev
Log:
define variable at the location where it is needed
Modified:
cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
Modified: cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java?rev=667552&r1=667551&r2=667552&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java (original)
+++ cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java Fri Jun 13 07:20:30 2008
@@ -85,8 +85,6 @@
long start = System.nanoTime();
this.logRequest(request);
- long ifLastModifiedSince = request.getDateHeader("If-Modified-Since");
-
this.lazyInitialize(this.servletConfig);
try {
@@ -116,6 +114,7 @@
}
// conditional request support
+ long ifLastModifiedSince = request.getDateHeader("If-Modified-Since");
if (ifLastModifiedSince > 0 && ifLastModifiedSince / 1000 >= lastModified / 1000) {
response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
if (this.logger.isInfoEnabled()) {