mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-09 05:22:09 +02:00
Fixed: (Cardigann) Avoid NullRef on forms with multipart/form-data
This commit is contained in:
parent
3881c9d753
commit
721ae1cac0
1 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue