diff --git a/network/rest/http/HTTPClient.h b/network/rest/http/HTTPClient.h index 86a7755b..c521758f 100644 --- a/network/rest/http/HTTPClient.h +++ b/network/rest/http/HTTPClient.h @@ -108,7 +108,7 @@ namespace network void close() { if (m_connection != nullptr) { - m_connection.stop(); + m_connection->stop(); } wait(); @@ -140,7 +140,7 @@ namespace network } /// Perform an asynchronous write operation. - void write(HTTPPayload& request) + void write(HTTPPayload request) { asio::async_write(m_socket, request.toBuffers(), [=](asio::error_code ec, std::size_t) { if (!ec) {