From 59fdc8bf15b9adcdca250a778f02ca251dc5dd3d Mon Sep 17 00:00:00 2001 From: Ilias Politsopoulos Date: Fri, 13 Oct 2023 19:56:36 +0100 Subject: [PATCH] update checks Signed-off-by: Ilias Politsopoulos --- src/Dapr.AspNetCore/CloudEventsMiddleware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dapr.AspNetCore/CloudEventsMiddleware.cs b/src/Dapr.AspNetCore/CloudEventsMiddleware.cs index b68b01abf..eac526c26 100644 --- a/src/Dapr.AspNetCore/CloudEventsMiddleware.cs +++ b/src/Dapr.AspNetCore/CloudEventsMiddleware.cs @@ -229,7 +229,7 @@ private static string GetDataContentType(JsonElement json, out bool isJson) .FirstOrDefault(d => d.Equals(CloudEventPropertyNames.DataContentType, StringComparison.OrdinalIgnoreCase)); - + string contentType; if (dataContentTypePropName != null