From 343be5a91ca38826cd7d9bf8e2cbc764ddc45bfe Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 8 Sep 2012 11:24:45 -0400 Subject: [PATCH] api url fix --- MediaBrowser.Api/ApiService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs index 6b3c00ee2..25820f518 100644 --- a/MediaBrowser.Api/ApiService.cs +++ b/MediaBrowser.Api/ApiService.cs @@ -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); } }