Handle 303 and 307 redirects in Http Requests

This commit is contained in:
Qstick 2021-03-02 13:09:45 -05:00 committed by Mark McDowall
parent cb8ed74fe9
commit d6cf370bcd
1 changed files with 4 additions and 1 deletions

View File

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