From 6a4f38bdafa341ad07e6dfc27248a462276e2f64 Mon Sep 17 00:00:00 2001 From: an-tao Date: Mon, 7 Jan 2019 21:19:51 +0800 Subject: [PATCH] Use any::reset() --- 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 9d469d35..11fde78c 100755 --- a/lib/src/HttpServer.cc +++ b/lib/src/HttpServer.cc @@ -88,7 +88,7 @@ void HttpServer::onConnection(const TcpConnectionPtr &conn) { _disconnectWebsocketCallback(context->webSocketConn()); } - conn->setContext(std::string("None")); + conn->getMutableContext()->reset(); } _connectionCallback(conn); }