From eccd72304c7b8224741145992e6407ed81818716 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 14 Nov 2021 00:32:19 -0600 Subject: [PATCH] Fixed: (NorBits) Set final login as POST prior to adding parameters Fixes #600 --- src/NzbDrone.Core/Indexers/Definitions/NorBits.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs b/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs index 3c314f396..2ab60205e 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/NorBits.cs @@ -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"))