jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r385489 - /incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java
Date Mon, 13 Mar 2006 10:10:51 GMT
Author: angela
Date: Mon Mar 13 02:10:35 2006
New Revision: 385489

URL: http://svn.apache.org/viewcvs?rev=385489&view=rev
Log:
fixing indention

Modified:
    incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java

Modified: incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java?rev=385489&r1=385488&r2=385489&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java
(original)
+++ incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/WebdavResponseImpl.java
Mon Mar 13 02:10:35 2006
@@ -67,9 +67,9 @@
         this.httpResponse = httpResponse;
         if (noCache) {
             /* set cache control headers */
-        addHeader("Pragma", "No-cache");  // http1.0
-        addHeader("Cache-Control", "no-cache"); // http1.1
-    }
+            addHeader("Pragma", "No-cache");  // http1.0
+            addHeader("Cache-Control", "no-cache"); // http1.1
+        }
     }
 
     /**
@@ -151,10 +151,10 @@
                 serializer.setNamespaces(true);
                 serializer.asDOMSerializer().serialize(doc);
 
-            byte[] bytes = out.toByteArray();
-            httpResponse.setContentType("text/xml; charset=UTF-8");
-            httpResponse.setContentLength(bytes.length);
-            httpResponse.getOutputStream().write(bytes);
+                byte[] bytes = out.toByteArray();
+                httpResponse.setContentType("text/xml; charset=UTF-8");
+                httpResponse.setContentLength(bytes.length);
+                httpResponse.getOutputStream().write(bytes);
 
             } catch (ParserConfigurationException e) {
                 log.error(e.getMessage());



Mime
View raw message