mirror of https://github.com/apache/archiva.git
[MRM-610] fix webdav tests on windows
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@642214 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40a360dbdb
commit
7e9be00ccc
|
@ -76,12 +76,16 @@ public class MultiplexedDavServerRequest
|
||||||
*/
|
*/
|
||||||
this.logicalResource = FilenameUtils.normalize( logicalResource );
|
this.logicalResource = FilenameUtils.normalize( logicalResource );
|
||||||
|
|
||||||
if ( logicalResource != null && logicalResource.startsWith( "//" ) )
|
if ( logicalResource != null )
|
||||||
{
|
{
|
||||||
logicalResource = logicalResource.substring( 1 );
|
logicalResource = logicalResource.replace( '\\', '/' );
|
||||||
}
|
|
||||||
|
|
||||||
if ( this.logicalResource == null )
|
if ( logicalResource.startsWith( "//" ) )
|
||||||
|
{
|
||||||
|
logicalResource = logicalResource.substring( 1 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
this.logicalResource = "/";
|
this.logicalResource = "/";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue