Handle 303 and 307 redirects in Http Requests

(cherry picked from commit d6cf370bcdf0aa0d11010c5791332986afb50ddd)
This commit is contained in:
Qstick 2021-03-02 13:09:45 -05:00
parent 95527218af
commit 88bc44f7ba
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ namespace NzbDrone.Common.Http
public bool HasHttpRedirect => StatusCode == HttpStatusCode.Moved ||
StatusCode == HttpStatusCode.MovedPermanently ||
StatusCode == HttpStatusCode.Found;
StatusCode == HttpStatusCode.Found ||
StatusCode == HttpStatusCode.TemporaryRedirect ||
StatusCode == HttpStatusCode.RedirectMethod ||
StatusCode == HttpStatusCode.SeeOther;
public string[] GetCookieHeaders()
{