diff --git a/Directory.Packages.props b/Directory.Packages.props index 5e9b1e2..86a63ba 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,33 +4,33 @@ false - - - - + + + + - - - - + + + + - - + + - - + + - + - - - - + + + + @@ -39,24 +39,24 @@ - - + + - - - - - + + + + + - - + + - - - + + + \ No newline at end of file diff --git a/src/OneBeyond.Studio.Hosting.AspNet/ModelBinders/MixedSource/Converters/FromBodyConverter.cs b/src/OneBeyond.Studio.Hosting.AspNet/ModelBinders/MixedSource/Converters/FromBodyConverter.cs index a87a8b0..b4050ad 100644 --- a/src/OneBeyond.Studio.Hosting.AspNet/ModelBinders/MixedSource/Converters/FromBodyConverter.cs +++ b/src/OneBeyond.Studio.Hosting.AspNet/ModelBinders/MixedSource/Converters/FromBodyConverter.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using EnsureThat; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Microsoft.IdentityModel.Tokens; using Newtonsoft.Json.Linq; namespace OneBeyond.Studio.Hosting.AspNet.ModelBinders.MixedSource.Converters; @@ -17,7 +16,7 @@ public async ValueTask ConvertAsync(ModelBindingContext bindingContext) { var body = await streamReader.ReadToEndAsync(); - return body.IsNullOrEmpty() + return string.IsNullOrEmpty(body) ? new JObject() : JToken.Parse(body); }