remove commented code

This commit is contained in:
Benjamin Sergeant 2019-06-20 19:43:38 -07:00
parent 15fa328a65
commit 22b8fc831c

View File

@ -60,22 +60,10 @@ namespace ix
SocketConnect::configure(fd);
auto ret = Http::parseRequest(socket);
// FIXME: handle errors in parseRequest
auto response = _onConnectionCallback(std::get<2>(ret), connectionState);
Http::sendResponse(response, socket);
#if 0
// Parse request
auto httpRequest = std::make_shared<HttpRequestArgs>();
// Execute callback which should produce a response
auto response = _onConnectionCallback(httpRequest, connectionState);
// Write the response to the socket
if (!socket->writeBytes(response, nullptr))
{
std::string errorMsg("Cannot send request");
}
#endif
logInfo("HttpServer::handleConnection() done");
connectionState->setTerminated();