mirror of https://github.com/Jackett/Jackett
RequestBytesWithCookies: add support for headers
This commit is contained in:
parent
f85a2cc5c7
commit
d6bcfa7e2e
|
@ -417,7 +417,7 @@ namespace Jackett.Indexers
|
|||
throw lastException;
|
||||
}
|
||||
|
||||
protected async Task<WebClientByteResult> RequestBytesWithCookies(string url, string cookieOverride = null, RequestType method = RequestType.GET, string referer = null, IEnumerable<KeyValuePair<string, string>> data = null)
|
||||
protected async Task<WebClientByteResult> RequestBytesWithCookies(string url, string cookieOverride = null, RequestType method = RequestType.GET, string referer = null, IEnumerable<KeyValuePair<string, string>> data = null, Dictionary<string, string> headers = null)
|
||||
{
|
||||
var request = new Utils.Clients.WebRequest()
|
||||
{
|
||||
|
@ -426,6 +426,7 @@ namespace Jackett.Indexers
|
|||
Cookies = cookieOverride ?? CookieHeader,
|
||||
PostData = data,
|
||||
Referer = referer,
|
||||
Headers = headers,
|
||||
Encoding = Encoding
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue