summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-07-20 21:37:22 +0000
committerOlivier Lamy <olamy@apache.org>2012-07-20 21:37:22 +0000
commite5a923bc4edb146a2b531e61541ff4fc2685d209 (patch)
treea57672efaeb982f2ddbf08d77887ceabcaedeffc /archiva-modules/archiva-web
parenta7f6a8efe9f33baf9d8fc36a14125c871da3688e (diff)
downloadarchiva-e5a923bc4edb146a2b531e61541ff4fc2685d209.tar.gz
archiva-e5a923bc4edb146a2b531e61541ff4fc2685d209.zip
[MRM-1644] Archiva should set cache control headers instead of adding for maven-metadata.xml
Submitted by Charles Kim. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1363959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
index bf3cc0f18..3e9981f01 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java
@@ -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();