mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
Fixed: (Cardigann) Avoid NullRef on forms with multipart/form-data
This commit is contained in:
@@ -771,13 +771,14 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
|
|||||||
|
|
||||||
protected Dictionary<string, string> ParseCustomHeaders(Dictionary<string, List<string>> customHeaders, Dictionary<string, object> variables)
|
protected 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));
|
||||||
|
Reference in New Issue
Block a user