diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-01 22:11:08 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-01 22:11:08 -0500 |
| commit | 10f9aaaee4d811578a1dc534adec7a6c1cd5cf1c (patch) | |
| tree | 7f160562747d724bca43ecda1aadcaf351422267 | |
| parent | 3800fe9051fa3fcfc4d7032ef5f796048efb02cf (diff) | |
fixes #1248 - Browsing to /web/ causes error
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 10 |
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); |
