diff options
author | Brett Porter <brett@apache.org> | 2007-11-12 19:39:47 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2007-11-12 19:39:47 +0000 |
commit | 6312584ac3c82bbd95b9183e7fffddbe48baf15c (patch) | |
tree | d8a018a5757210182c5dcf4c15dab12547bb9dd3 /archiva-base/archiva-proxy | |
parent | 2ecf0c097825a3a7437f398266b912811a21421b (diff) | |
download | archiva-6312584ac3c82bbd95b9183e7fffddbe48baf15c.tar.gz archiva-6312584ac3c82bbd95b9183e7fffddbe48baf15c.zip |
make sure the URL includes required /
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@594269 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-proxy')
-rw-r--r-- | archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java index d2656b7f6..9d4c59cef 100644 --- a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -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? |