From aebddd27b1d5f10eaa7373b16ecf4afe9e9996df Mon Sep 17 00:00:00 2001 From: antao Date: Sun, 26 Aug 2018 16:43:19 +0800 Subject: [PATCH] Fix a fatal bug --- lib/src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/HttpServer.cc b/lib/src/HttpServer.cc index 86fbf706..139fac2e 100755 --- a/lib/src/HttpServer.cc +++ b/lib/src/HttpServer.cc @@ -129,7 +129,7 @@ void HttpServer::onMessage(const TcpConnectionPtr& conn, context->setWebsockConnection(wsConn); } MsgBuffer buffer; - std::dynamic_pointer_cast(resp)->appendToBuffer(&buffer); + std::dynamic_pointer_cast(resp)->appendToBuffer(&buffer); conn->send(std::move(buffer)); },wsConn); }