aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-11-17 19:53:12 +0100
committerBond_009 <bond.009@outlook.com>2019-11-17 19:53:12 +0100
commit5ee070eb292e1588e9482e0f73e067c85c956ca2 (patch)
treea09b3c3b46c3601cce0eb7ea8900343eed11e3e6
parentc87f459ec2f0882483716363b35c8a371c00d55a (diff)
Remove leading / from baseurl
-rw-r--r--Emby.Dlna/Api/DlnaServerService.cs2
-rw-r--r--MediaBrowser.Api/BaseApiService.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/Api/DlnaServerService.cs b/Emby.Dlna/Api/DlnaServerService.cs
index 2c9be4bff..1f137e620 100644
--- a/Emby.Dlna/Api/DlnaServerService.cs
+++ b/Emby.Dlna/Api/DlnaServerService.cs
@@ -220,7 +220,7 @@ namespace Emby.Dlna.Api
{
index++;
}
- else if (string.Equals(first, baseUrl))
+ else if (string.Equals(first, baseUrl.Remove(0, 1)))
{
index++;
var second = pathInfo[1];
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index e8ecf37d4..311105596 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -306,7 +306,7 @@ namespace MediaBrowser.Api
{
index++;
}
- else if (string.Equals(first, baseUrl))
+ else if (string.Equals(first, baseUrl.Remove(0, 1)))
{
index++;
var second = pathInfo[1];