From 5586fd6acdd8dde88c70ced940d55167e01f364a Mon Sep 17 00:00:00 2001 From: holydk Date: Wed, 20 May 2020 14:05:12 +0300 Subject: [PATCH] #4158 Write response as async operation --- src/Presentation/Nop.Web.Framework/RemotePost.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Presentation/Nop.Web.Framework/RemotePost.cs b/src/Presentation/Nop.Web.Framework/RemotePost.cs index 383dd9bc2ae..70d87ec3444 100644 --- a/src/Presentation/Nop.Web.Framework/RemotePost.cs +++ b/src/Presentation/Nop.Web.Framework/RemotePost.cs @@ -140,7 +140,9 @@ public void Post() }); response.Clear(); - response.Body.Write(data, 0, data.Length); + response.Body + .WriteAsync(data, 0, data.Length) + .Wait(); //store a value indicating whether POST has been done _webHelper.IsPostBeingDone = true;