mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
api url fix
This commit is contained in:
parent
faead199a5
commit
343be5a91c
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,8 @@ namespace MediaBrowser.Api
|
|||
|
||||
public static bool IsApiUrlMatch(string url, HttpListenerRequest request)
|
||||
{
|
||||
url = "/api/" + url;
|
||||
|
||||
return request.Url.LocalPath.EndsWith(url, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue