From 70782c510112bfc027091ce7084870ff68e47482 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 20 Mar 2023 13:21:56 -0400 Subject: [PATCH] minor corrections for variable handling; --- network/rest/http/HTTPClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {