summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/http_connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/http/http_connection.h b/http/http_connection.h
index ca3314b7e0..8aaabcddaa 100644
--- a/http/http_connection.h
+++ b/http/http_connection.h
@@ -340,7 +340,8 @@ class Connection :
{
needToCallAfterHandlers = true;
res.completeRequestHandler = [self(shared_from_this())] {
- self->completeRequest();
+ boost::asio::post(self->adaptor.get_executor(),
+ [self] { self->completeRequest(); });
};
if (req->isUpgrade() &&
boost::iequals(