aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 926e6b09f..f6f8024ca 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -1400,11 +1400,11 @@ HttpSysServerRequest::WriteResponseAsync(std::function<void(HttpServerRequest&)>
{
if (m_HttpTx.Server().IsAsyncResponseEnabled())
{
- ContinuationHandler(m_HttpTx.ServerRequest());
+ m_NextCompletionHandler = new HttpAsyncWorkRequest(m_HttpTx, std::move(ContinuationHandler));
}
else
{
- m_NextCompletionHandler = new HttpAsyncWorkRequest(m_HttpTx, std::move(ContinuationHandler));
+ ContinuationHandler(m_HttpTx.ServerRequest());
}
}