From 6f450eda860321d876ea2fdf3da5f8c4a93833aa Mon Sep 17 00:00:00 2001 From: cat Date: Mon, 7 Jul 2025 03:49:02 +0300 Subject: [PATCH] it should be just send so browser knows we are done --- src/HTTP/HTTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HTTP/HTTP.cpp b/src/HTTP/HTTP.cpp index 8df4b50..4c4bed5 100644 --- a/src/HTTP/HTTP.cpp +++ b/src/HTTP/HTTP.cpp @@ -31,7 +31,7 @@ void HTTPrequest::sendResponse(std::string status, std::string mime, asio::async_write( sock, asio::buffer(responseText), [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(); }); }