mirror of
https://github.com/Jackett/Jackett
synced 2024-12-30 19:58:39 +00:00
Fix: Downloading of torrent file don't follow redirect (#2196)
This commit is contained in:
parent
16f255745f
commit
492816ab35
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
---
|
||||
site: nnm-club
|
||||
name: NoName Club
|
||||
description: "NoName Club (NNM-Club) is a RUSSIAN Semi-Private Torrent Tracker for 0DAY / GENERAL"
|
||||
|
|
|
@ -298,6 +298,10 @@ namespace Jackett.Indexers
|
|||
.Replace(")", "%29")
|
||||
.Replace("'", "%27");
|
||||
var response = await RequestBytesWithCookiesAndRetry(requestLink, null, method, requestLink);
|
||||
if (response.IsRedirect)
|
||||
{
|
||||
await FollowIfRedirect(response);
|
||||
}
|
||||
if (response.Status != System.Net.HttpStatusCode.OK && response.Status != System.Net.HttpStatusCode.Continue && response.Status != System.Net.HttpStatusCode.PartialContent)
|
||||
{
|
||||
logger.Error("Failed download cookies: " + this.CookieHeader);
|
||||
|
|
Loading…
Reference in a new issue