Fixed: cache break issue when base url was used

pull/3113/head
kayone 10 years ago
parent 52da4e4423
commit 5fc7d07c76

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

Loading…
Cancel
Save