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