From 5b7fce8fd65fe04d18552d7e0093cfb73d6914e1 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 26 Nov 2025 17:23:51 +0100 Subject: [PATCH] Make RestType handling case-insensitive in switch Convert RestType to uppercase in the switch statement to ensure case-insensitive matching of REST types. This change handles variations like "get", "Get", and "GET" consistently. Additionally, use the null-conditional operator to prevent NullReferenceException when RestType is null. --- .../RecActions/Commands/InvokeRecActionCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs index 51fe220..4314845 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -26,7 +26,7 @@ public class InvokeRecActionCommandHandler(ISender sender) : IRequestHandler