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)
|
private Dictionary<string, string> ParseCustomHeaders(Dictionary<string, List<string>> customHeaders, Dictionary<string, object> variables)
|
||||||
{
|
{
|
||||||
|
var headers = new Dictionary<string, string>();
|
||||||
|
|
||||||
if (customHeaders == null)
|
if (customHeaders == null)
|
||||||
return null;
|
{
|
||||||
|
return headers;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: fix jackett header handling (allow it to specifiy the same header multipe times)
|
// 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)
|
foreach (var header in customHeaders)
|
||||||
|
{
|
||||||
headers.Add(header.Key, applyGoTemplateText(header.Value[0], variables));
|
headers.Add(header.Key, applyGoTemplateText(header.Value[0], variables));
|
||||||
|
}
|
||||||
|
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue