From a7dd01eb42e74fafc81dfccb867dbf2112a27421 Mon Sep 17 00:00:00 2001 From: Antonin Lenfant-Kodia Date: Sun, 1 Mar 2026 15:01:13 +0100 Subject: [PATCH] Fix qB auth/login to always return plain text --- .../RdtClient.Web/Controllers/QBittorrentController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/RdtClient.Web/Controllers/QBittorrentController.cs b/server/RdtClient.Web/Controllers/QBittorrentController.cs index 3ca48e2..5a3aea8 100644 --- a/server/RdtClient.Web/Controllers/QBittorrentController.cs +++ b/server/RdtClient.Web/Controllers/QBittorrentController.cs @@ -24,22 +24,22 @@ public class QBittorrentController(ILogger logger, QBitto if (Settings.Get.General.AuthenticationType == AuthenticationType.None) { - return Ok("Ok."); + return Content("Ok.", "text/plain"); } if (String.IsNullOrWhiteSpace(request.UserName) || String.IsNullOrEmpty(request.Password)) { - return Ok("Fails."); + return Content("Fails.", "text/plain"); } var result = await qBittorrent.AuthLogin(request.UserName, request.Password); if (result) { - return Ok("Ok."); + return Content("Ok.", "text/plain"); } - return Ok("Fails."); + return Content("Fails.", "text/plain"); } [AllowAnonymous] @@ -601,4 +601,4 @@ public class QBTorrentsRemoveCategoryRequest public class QBTorrentsHashesRequest { public String? Hashes { get; set; } -} \ No newline at end of file +}