cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r667552 - /cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/SitemapServlet.java
Date Fri, 13 Jun 2008 14:20:30 GMT
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()) {



Mime
View raw message