mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
Handle 303 and 307 redirects in Http Requests
This commit is contained in:
parent
cb8ed74fe9
commit
d6cf370bcd
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue