api url fix

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-09-08 11:24:45 -04:00
parent faead199a5
commit 343be5a91c

View File

@ -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);
}
}