Fixed: cache break issue when base url was used
This commit is contained in:
parent
52da4e4423
commit
5fc7d07c76
|
@ -78,7 +78,11 @@ namespace NzbDrone.Api.Frontend.Mappers
|
|||
|
||||
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_KEY", API_KEY);
|
||||
|
|
Loading…
Reference in New Issue