Fixed: (NorBits) Set final login as POST prior to adding parameters

Fixes #600
pull/605/head
Qstick 3 years ago
parent 0fb19160f4
commit eccd72304c

@ -78,7 +78,8 @@ namespace NzbDrone.Core.Indexers.Definitions
var requestBuilder3 = new HttpRequestBuilder(string.Format("{0}/{1}", Settings.BaseUrl.TrimEnd('/'), "takelogin.php"))
{
LogResponseContent = true,
AllowAutoRedirect = true
AllowAutoRedirect = true,
Method = HttpMethod.POST
};
var authLoginCheckRequest = requestBuilder3
@ -88,8 +89,6 @@ namespace NzbDrone.Core.Indexers.Definitions
.SetHeader("Referer", loginUrl)
.Build();
authLoginCheckRequest.Method = HttpMethod.POST;
var loginResponse = await ExecuteAuth(authLoginCheckRequest);
if (!loginResponse.GetCookies().ContainsKey("uid"))

Loading…
Cancel
Save