Explorar o código

Merge pull request #2019 from Bond-009/baseurlhotfix

Remove leading / from baseurl
Vasily %!s(int64=5) %!d(string=hai) anos
pai
achega
0836241e90
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      Emby.Dlna/Api/DlnaServerService.cs
  2. 1 1
      MediaBrowser.Api/BaseApiService.cs

+ 1 - 1
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];

+ 1 - 1
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];