mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-03 14:24:20 +01:00
Fixed: (Cardigann) Always use search headers for download if defined
This commit is contained in:
parent
4e69b80a98
commit
3b7b72d4e1
1 changed files with 4 additions and 4 deletions
|
|
@ -727,14 +727,14 @@ public async Task<HttpRequest> DownloadRequest(Uri link)
|
|||
var method = HttpMethod.GET;
|
||||
var headers = new Dictionary<string, string>();
|
||||
|
||||
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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue