mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-26 23:06:43 -04:00
Fixed: (NorBits) Set final login as POST prior to adding parameters
Fixes #600
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user