mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 11:47:56 +08:00
commit
5a9ecd4327
@ -36,7 +36,7 @@ void HttpRequestParser::shutdownConnection(HttpStatusCode code)
|
||||
auto connPtr = _conn.lock();
|
||||
if (connPtr)
|
||||
{
|
||||
connPtr->send(formattedString("HTTP/1.1 %d %s\r\n\r\n", code, statusCodeToString(code)));
|
||||
connPtr->send(formattedString("HTTP/1.1 %d %s\r\n\r\n", code, statusCodeToString(code).data()));
|
||||
connPtr->shutdown();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user