aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-14 14:09:49 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-14 14:09:49 -0500
commitab6fefbbbdb1afedecc68fe2330bde081cbdbc47 (patch)
treeb5145ce960c5df915cebcea7a9063266d78c0a99 /MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
parentf6e73a428e299fb3037efa0e8d41e8866016c68c (diff)
fixes #1248 - Browsing to /web/ causes error
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
index 1ac47016d..6ade9a8f6 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -330,6 +330,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
httpRes.RedirectToUrl("emby/" + DefaultRedirectPath);
return Task.FromResult(true);
}
+ if (string.Equals(localPath, "/web", StringComparison.OrdinalIgnoreCase))
+ {
+ httpRes.RedirectToUrl(DefaultRedirectPath);
+ return Task.FromResult(true);
+ }
+ if (string.Equals(localPath, "/web/", StringComparison.OrdinalIgnoreCase))
+ {
+ httpRes.RedirectToUrl("../" + DefaultRedirectPath);
+ return Task.FromResult(true);
+ }
if (string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase))
{
httpRes.RedirectToUrl(DefaultRedirectPath);