diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 5c1d631b4..1bd0a6c76 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -727,14 +727,14 @@ namespace NzbDrone.Core.Indexers.Cardigann var method = HttpMethod.GET; var headers = new Dictionary(); + var variables = GetBaseTemplateVariables(); + AddTemplateVariablesFromUri(variables, link, ".DownloadUri"); + headers = ParseCustomHeaders(_definition.Search?.Headers, variables); + if (_definition.Download != null) { var download = _definition.Download; - var variables = GetBaseTemplateVariables(); - - AddTemplateVariablesFromUri(variables, link, ".DownloadUri"); - headers = ParseCustomHeaders(_definition.Search?.Headers, variables); HttpResponse response = null; var request = new HttpRequestBuilder(link.ToString())