Merge pull request #77 from an-tao/dev

Fix a compilation warning
This commit is contained in:
An Tao 2019-03-17 21:32:10 +08:00 committed by GitHub
commit 5a9ecd4327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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