Handle 303 and 307 redirects in Http Requests
This commit is contained in:
parent
cb8ed74fe9
commit
d6cf370bcd
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue