Template
1
0

it should be just send so browser knows we are done

This commit is contained in:
2025-07-07 03:49:02 +03:00
parent 95e475ef2a
commit 6f450eda86

View File

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