mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-06 04:32:24 +00:00
sync updates
This commit is contained in:
@@ -380,6 +380,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
Priority = route.Priority,
|
||||
Summary = route.Summary
|
||||
});
|
||||
|
||||
// TODO: This is a hack for iOS. Remove it asap.
|
||||
routes.Add(new RouteAttribute(DoubleNormalizeRoutePath(route.Path), route.Verbs)
|
||||
{
|
||||
Notes = route.Notes,
|
||||
Priority = route.Priority,
|
||||
Summary = route.Summary
|
||||
});
|
||||
}
|
||||
|
||||
return routes.ToArray();
|
||||
@@ -395,6 +403,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
return "mediabrowser/" + path;
|
||||
}
|
||||
|
||||
private string DoubleNormalizeRoutePath(string path)
|
||||
{
|
||||
if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "/mediabrowser/mediabrowser" + path;
|
||||
}
|
||||
|
||||
return "mediabrowser//mediabrowser" + path;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Releases the specified instance.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user