Fixed: cache break issue when base url was used

This commit is contained in:
kayone 2014-09-01 14:58:02 -07:00
parent 52da4e4423
commit 5fc7d07c76
1 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,11 @@ namespace NzbDrone.Api.Frontend.Mappers
var cacheBreakProvider = _cacheBreakProviderFactory(); var cacheBreakProvider = _cacheBreakProviderFactory();
_generatedContent = ReplaceRegex.Replace(_generatedContent, match => cacheBreakProvider.AddCacheBreakerToPath(URL_BASE + match.Value)); _generatedContent = ReplaceRegex.Replace(_generatedContent, match =>
{
var url = cacheBreakProvider.AddCacheBreakerToPath(match.Value);
return URL_BASE + url;
});
_generatedContent = _generatedContent.Replace("API_ROOT", URL_BASE + "/api"); _generatedContent = _generatedContent.Replace("API_ROOT", URL_BASE + "/api");
_generatedContent = _generatedContent.Replace("API_KEY", API_KEY); _generatedContent = _generatedContent.Replace("API_KEY", API_KEY);