Skip to content

Commit

Permalink
Merge branch 'feature/dotnet3' of github.com:dotnetcore/WTM into feat…
Browse files Browse the repository at this point in the history
…ure/dotnet3
  • Loading branch information
alienwow committed Nov 16, 2019
2 parents ec6c71d + 96707e3 commit ab9d02a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified doc/WalkingTec.Mvvm.Doc/SetupFiles/Spa/React/ClientApp.zip
Binary file not shown.
9 changes: 8 additions & 1 deletion src/WalkingTec.Mvvm.Mvc/Helper/FrameworkServiceExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,14 @@ public static IApplicationBuilder UseFrameworkService(this IApplicationBuilder a
StreamReader tr = new StreamReader(context.Request.Body);
string body = tr.ReadToEndAsync().Result;
context.Request.Body.Position = 0;
context.Items.Add("DONOTUSE_REQUESTBODY", body);
if (context.Items.ContainsKey("DONOTUSE_REQUESTBODY") == false)
{
context.Items.Add("DONOTUSE_REQUESTBODY", body);
}
else
{
context.Items["DONOTUSE_REQUESTBODY"] = body;
}
await next.Invoke();
if (context.Response.StatusCode == 404)
{
Expand Down

0 comments on commit ab9d02a

Please sign in to comment.