make sure the URL includes required /

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@594269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-11-12 19:39:47 +00:00
parent 2ecf0c0978
commit 6312584ac3
1 changed files with 6 additions and 1 deletions

View File

@ -478,7 +478,12 @@ public class DefaultRepositoryProxyConnectors
File localFile, Properties requestProperties ) File localFile, Properties requestProperties )
throws ProxyException, NotModifiedException 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 ); requestProperties.setProperty( "url", url );
// Is a whitelist defined? // Is a whitelist defined?