From 33b8ede4927c4008d3724bc9f574c0e9f6f1118b Mon Sep 17 00:00:00 2001 From: db-2001 Date: Thu, 18 Apr 2024 17:58:23 -0400 Subject: [PATCH] Use new requestParams variable for AprilFoolsMode setting --- Tranga/Server.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Server.cs b/Tranga/Server.cs index 0aa2ca9..e7e55c8 100644 --- a/Tranga/Server.cs +++ b/Tranga/Server.cs @@ -431,7 +431,7 @@ public class Server : GlobalBase SendResponse(HttpStatusCode.Accepted, response); break; case "Settings/AprilFoolsMode": - if (!requestVariables.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) || + if (!requestParams.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) || bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled)) { SendResponse(HttpStatusCode.BadRequest, response);