core / firebit: fix download referer. resolves #9758 (#9789)

This commit is contained in:
Diego Heras
2020-10-08 22:21:40 +02:00
committed by GitHub
parent 4daed9ea70
commit c991d27b85
2 changed files with 8 additions and 11 deletions

View File

@@ -381,7 +381,7 @@ namespace Jackett.Common.Indexers
return await Download(uncleanLink, RequestType.GET);
}
protected async Task<byte[]> Download(Uri link, RequestType method, string refererlink = null, Dictionary<string, string>headers = null)
protected async Task<byte[]> Download(Uri link, RequestType method, string referer = null, Dictionary<string, string>headers = null)
{
// return magnet link
if (link.Scheme == "magnet")
@@ -392,7 +392,7 @@ namespace Jackett.Common.Indexers
.Replace("(", "%28")
.Replace(")", "%29")
.Replace("'", "%27");
var response = await RequestWithCookiesAndRetryAsync(requestLink, null, method, refererlink, null, headers);
var response = await RequestWithCookiesAndRetryAsync(requestLink, null, method, referer, null, headers);
if (response.IsRedirect)
{