[feature] Fix TestValue to avoid double // in Urls (#4920)

•Adds logic in  Get-WebListenerUrl  to only apply the  TestValue  part of the path if it was supplied.
This commit is contained in:
Mark Kraus
2017-09-26 09:05:55 +04:00
committed by Ilya
parent efbdea5cfe
commit dd02aac3d7
@@ -141,7 +141,16 @@ function Get-WebListenerUrl {
$Uri.Port = $runningListener.HttpsPort
$Uri.Scheme = 'Https'
}
$Uri.Path = '{0}/{1}' -f $Test, $TestValue
if ($TestValue)
{
$Uri.Path = '{0}/{1}' -f $Test, $TestValue
}
else
{
$Uri.Path = $Test
}
return [Uri]$Uri.ToString()
}
}