Merge pull request #2019 from Bond-009/baseurlhotfix

Remove leading / from baseurl
This commit is contained in:
Vasily 2019-11-18 13:55:56 +03:00 committed by GitHub
commit 0836241e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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];