Tiding up
This commit is contained in:
@@ -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_send);
|
||||
sock.shutdown(asio::ip::tcp::socket::shutdown_both);
|
||||
waitForClientClose();
|
||||
});
|
||||
}
|
||||
|
@@ -5,9 +5,6 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
|
||||
// TODO: Remove boundary from the body. Do keep other stuff like
|
||||
// file type and name
|
||||
|
||||
void HTTPrequest::processHTTPHeader() {
|
||||
std::shared_ptr<HTTPrequest> self(shared_from_this());
|
||||
|
||||
|
Reference in New Issue
Block a user