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 +}