archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1363959 - /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
Date Fri, 20 Jul 2012 21:37:22 GMT
Author: olamy
Date: Fri Jul 20 21:37:22 2012
New Revision: 1363959

URL: http://svn.apache.org/viewvc?rev=1363959&view=rev
Log:
[MRM-1644] Archiva should set cache control headers instead of adding for maven-metadata.xml
Submitted by Charles Kim.

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java?rev=1363959&r1=1363958&r2=1363959&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
Fri Jul 20 21:37:22 2012
@@ -435,14 +435,14 @@ public class ArchivaDavResourceFactoryTe
             requestControl.expectAndReturn( request.getRequestURI(),
                                             "http://localhost:8080/archiva/repository/" +
INTERNAL_REPO
                                                 + "/eclipse/jdtcore/maven-metadata.xml" );
-            response.addHeader( "Pragma", "no-cache" );
+            response.setHeader( "Pragma", "no-cache" );
             responseControl.setVoidCallable();
 
-            response.addHeader( "Cache-Control", "no-cache" );
+            response.setHeader( "Cache-Control", "no-cache" );
             responseControl.setVoidCallable();
 
             long date = 2039842134;
-            response.addDateHeader( "last-modified", date );
+            response.setDateHeader( "last-modified", date );
             responseControl.setVoidCallable();
 
             archivaConfigurationControl.replay();



Mime
View raw message