fixed incomplete response

This commit is contained in:
orignal 2024-09-29 21:43:47 -04:00
parent 5466983b36
commit 237d9474d8

View File

@ -1480,7 +1480,7 @@ namespace http {
reply.body = content;
m_SendBuffer = reply.to_string();
boost::asio::async_write (*m_Socket, boost::asio::buffer(m_SendBuffer),
boost::asio::async_write (*m_Socket, boost::asio::buffer(m_SendBuffer), boost::asio::transfer_all (),
std::bind (&HTTPConnection::Terminate, shared_from_this (), std::placeholders::_1));
}