mirror of https://github.com/Jackett/Jackett
cardigann: don't return null for parsing headers (#15167)
This commit is contained in:
parent
ce45535fe5
commit
466122c339
|
@ -2125,13 +2125,18 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
private Dictionary<string, string> ParseCustomHeaders(Dictionary<string, List<string>> customHeaders, Dictionary<string, object> variables)
|
||||
{
|
||||
var headers = new Dictionary<string, string>();
|
||||
|
||||
if (customHeaders == null)
|
||||
return null;
|
||||
{
|
||||
return headers;
|
||||
}
|
||||
|
||||
// FIXME: fix jackett header handling (allow it to specifiy the same header multipe times)
|
||||
var headers = new Dictionary<string, string>();
|
||||
foreach (var header in customHeaders)
|
||||
{
|
||||
headers.Add(header.Key, applyGoTemplateText(header.Value[0], variables));
|
||||
}
|
||||
|
||||
return headers;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue