diff --git a/src/modules/Elsa.Http/Parsers/JsonHttpContentParser.cs b/src/modules/Elsa.Http/Parsers/JsonHttpContentParser.cs index ad2906c49e..4f2ee9bba1 100644 --- a/src/modules/Elsa.Http/Parsers/JsonHttpContentParser.cs +++ b/src/modules/Elsa.Http/Parsers/JsonHttpContentParser.cs @@ -30,6 +30,9 @@ public async Task ReadAsync(Stream content, Type? returnType, Cancellati using var reader = new StreamReader(content, leaveOpen: true); var json = await reader.ReadToEndAsync(); + + if(returnType == typeof(string)) + return json; if (returnType == null || returnType.IsPrimitive) return json.ConvertTo(returnType ?? typeof(string))!;