From e5a923bc4edb146a2b531e61541ff4fc2685d209 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 20 Jul 2012 21:37:22 +0000 Subject: [PATCH] [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 --- .../archiva/webdav/ArchivaDavResourceFactoryTest.java | 6 +++--- 1 file 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();