Skip to content

Commit

Permalink
Fixed: (Cardigann) Avoid NullRef on forms with multipart/form-data
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Mar 18, 2024
1 parent 3881c9d commit 721ae1c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -771,13 +771,14 @@ protected string ApplyFilters(string data, List<FilterBlock> filters, Dictionary

protected 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));
Expand Down

0 comments on commit 721ae1c

Please sign in to comment.