mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 21:26:08 +00:00
BaseIndexer: Update cookies in RequestBytesWithCookies()
This commit is contained in:
parent
23ae126026
commit
0ab6734dec
1 changed files with 3 additions and 1 deletions
|
@ -378,7 +378,9 @@ namespace Jackett.Indexers
|
|||
|
||||
if (cookieOverride != null)
|
||||
request.Cookies = cookieOverride;
|
||||
return await webclient.GetBytes(request);
|
||||
var result = await webclient.GetBytes(request);
|
||||
UpdateCookieHeader(result.Cookies, cookieOverride);
|
||||
return result;
|
||||
}
|
||||
|
||||
protected async Task<WebClientStringResult> PostDataWithCookies(string url, IEnumerable<KeyValuePair<string, string>> data, string cookieOverride = null, string referer = null, Dictionary<string, string> headers = null, string rawbody = null, bool? emulateBrowser = null)
|
||||
|
|
Loading…
Reference in a new issue