forked from cat/WebBase
it should be just send so browser knows we are done
This commit is contained in:
@@ -31,7 +31,7 @@ void HTTPrequest::sendResponse(std::string status, std::string mime,
|
|||||||
asio::async_write(
|
asio::async_write(
|
||||||
sock, asio::buffer(responseText),
|
sock, asio::buffer(responseText),
|
||||||
[this, self = shared_from_this()](std::error_code, std::size_t) {
|
[this, self = shared_from_this()](std::error_code, std::size_t) {
|
||||||
sock.shutdown(asio::ip::tcp::socket::shutdown_both);
|
sock.shutdown(asio::ip::tcp::socket::shutdown_send);
|
||||||
waitForClientClose();
|
waitForClientClose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user