diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-03-25 13:48:49 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-03-25 13:48:49 -0400 |
| commit | f6c18200bacae6e768225a8c073418a170d349bd (patch) | |
| tree | 875b6bee7d0a634d7ef019cfb7c434823b223001 /MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | |
| parent | 611ddb772f97d701affaca61564b955ab94f4add (diff) | |
| parent | ca994965c2a3607d009d7a5cfea0cf888136c735 (diff) | |
Merge pull request #1592 from MediaBrowser/dev
update take the tour
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs index c6452d8f5..3e4f4a70c 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/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)) |
