浏览代码

update take the tour

Luke Pulverenti 9 年之前
父节点
当前提交
ca994965c2
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 6 - 3
MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -354,10 +354,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer
                 var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase)
                     .Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);
 
-                httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");
+                if (!string.Equals(newUrl, urlString, StringComparison.OrdinalIgnoreCase))
+                {
+                    httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");
 
-                httpRes.Close();
-                return Task.FromResult(true);
+                    httpRes.Close();
+                    return Task.FromResult(true);
+                }
             }
 
             if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))