]> source.dussan.org Git - archiva.git/commitdiff
make sure the URL includes required /
authorBrett Porter <brett@apache.org>
Mon, 12 Nov 2007 19:39:47 +0000 (19:39 +0000)
committerBrett Porter <brett@apache.org>
Mon, 12 Nov 2007 19:39:47 +0000 (19:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@594269 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java

index d2656b7f667920c76c9afc943c7520d36050d197..9d4c59cef881b2074531fd2c6fa997731b82de47 100644 (file)
@@ -478,7 +478,12 @@ public class DefaultRepositoryProxyConnectors
                                File localFile, Properties requestProperties )
         throws ProxyException, NotModifiedException
     {
-        String url = remoteRepository.getURL().getUrl() + remotePath;
+        String url = remoteRepository.getURL().getUrl();
+        if ( !url.endsWith( "/" ) )
+        {
+            url = url + "/";
+        }
+        url = url + remotePath;
         requestProperties.setProperty( "url", url );
 
         // Is a whitelist defined?