]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1644] Archiva should set cache control headers instead of adding for maven-metad...
authorOlivier Lamy <olamy@apache.org>
Fri, 20 Jul 2012 21:37:22 +0000 (21:37 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 20 Jul 2012 21:37:22 +0000 (21:37 +0000)
Submitted by Charles Kim.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1363959 13f79535-47bb-0310-9956-ffa450edef68

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

index bf3cc0f18adaf0adaff128a574e5b32883cc4218..3e9981f011b2e958ebd63080136d417505d780d2 100644 (file)
@@ -435,14 +435,14 @@ public class ArchivaDavResourceFactoryTest
             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();