connection should be closed by client

This commit is contained in:
an-tao 2018-06-07 17:30:03 +08:00
parent 132e887337
commit 696a2d016f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ void HttpServer::onMessage(const TcpConnectionPtr& conn,
// LOG_INFO << "###:" << string(buf->peek(), buf->readableBytes());
if (!context->parseRequest(buf)) {
conn->send("HTTP/1.1 400 Bad Request\r\n\r\n");
conn->shutdown();
//conn->shutdown();
}
if (context->gotAll()) {