diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-10-07 02:16:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-07 02:16:08 -0400 |
| commit | b7b1dbed5b28f614d759a3811444dbb8a7dacadc (patch) | |
| tree | d6d866ce6e3d2ad10ddd32a52157ae280b12753d /Emby.Server.Implementations/HttpServer | |
| parent | 8eeca98fef6dd314764882b0ea1121361ec11e46 (diff) | |
| parent | be1ed79cf633b5e9d8728ca50fe6e98d514f0ad6 (diff) | |
Merge pull request #2945 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpListenerHost.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs index 737d4ceea..1d3d4f1e5 100644 --- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -725,12 +725,13 @@ namespace Emby.Server.Implementations.HttpServer Summary = route.Summary }); - //routes.Add(new RouteAttribute(DoubleNormalizeEmbyRoutePath(route.Path), route.Verbs) - //{ - // Notes = route.Notes, - // Priority = route.Priority, - // Summary = route.Summary - //}); + // needed because apps add /emby, and some users also add /emby, thereby double prefixing + routes.Add(new RouteAttribute(DoubleNormalizeEmbyRoutePath(route.Path), route.Verbs) + { + Notes = route.Notes, + Priority = route.Priority, + Summary = route.Summary + }); } return routes.ToArray(routes.Count); |
