浏览代码

Another baseurl related fix

Baseurl always starts with a '/' (unless it's empty)
Bond_009 5 年之前
父节点
当前提交
f5db4c8402

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -1522,7 +1522,7 @@ namespace Emby.Server.Implementations
             string baseUrl = ServerConfigurationManager.Configuration.BaseUrl;
             if (baseUrl.Length != 0)
             {
-                url.Append('/').Append(baseUrl);
+                url.Append(baseUrl);
             }
 
             return url.ToString();

+ 1 - 0
MediaBrowser.Model/Configuration/ServerConfiguration.cs

@@ -165,6 +165,7 @@ namespace MediaBrowser.Model.Configuration
         public bool SkipDeserializationForBasicTypes { get; set; }
 
         public string ServerName { get; set; }
+
         public string BaseUrl
         {
             get => _baseUrl;