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); }