From c369647f101a4e10704364ea0cd6935d1d4956e8 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Fri, 26 Jun 2020 08:20:50 +0200 Subject: [PATCH] Made FromJsonPathAttribute public Signed-off-by: Bjarke Berg --- .../ModelBinders/FromJsonPathAttribute.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs index 371f146e00..aa33406db3 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs @@ -23,7 +23,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders /// normal json formatter will not figure this out. /// This would also let you bind sub levels of the JSON being sent up too if you wanted with any jsonpath /// - internal class FromJsonPathAttribute : ModelBinderAttribute + public class FromJsonPathAttribute : ModelBinderAttribute { public FromJsonPathAttribute() : base(typeof(JsonPathBinder)) { @@ -40,7 +40,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders } - var strJson = bindingContext.HttpContext.Request.GetRawBodyString(); + var strJson = await bindingContext.HttpContext.Request.GetRawBodyStringAsync(); if (string.IsNullOrWhiteSpace(strJson))