mirror of https://github.com/Radarr/Radarr
Handle 303 and 307 redirects in Http Requests
(cherry picked from commit d6cf370bcdf0aa0d11010c5791332986afb50ddd)
This commit is contained in:
parent
95527218af
commit
88bc44f7ba
|
@ -52,7 +52,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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue