Unverified Commit dc9a9f22 authored by anonimal's avatar anonimal

Boost.Beast: remove deprecation (breaks 1.70+ build)

parent 84b8eea9
......@@ -192,7 +192,7 @@ bool HTTP::DownloadViaClearnet() {
if (header["Last-Modified"] != GetPreviousLastModified())
SetLastModified(header["Last-Modified"].to_string());
os << boost::beast::buffers(res.body().data());
os << boost::beast::make_printable(res.body().data());
SetDownloadedContents(os.str());
break;
case http::status::not_modified:
......
......@@ -87,7 +87,7 @@ std::string LogNetBodyToString(const Type& http_message)
{
std::stringstream ss;
std::stringstream os;
os << boost::beast::buffers(http_message.body().data());
os << boost::beast::make_printable(http_message.body().data());
ss << "Body : "
<< kovri::core::GetFormattedHex(
reinterpret_cast<const uint8_t*>(os.str().data()),
......
......@@ -209,7 +209,7 @@ void I2PControlClient::HandleHTTPResponse(
boost::ignore_unused(bytes_transferred);
std::stringstream stream;
stream << boost::beast::buffers(m_HTTPResponse.body().data());
stream << boost::beast::make_printable(m_HTTPResponse.body().data());
// Clean up response before next request
m_HTTPResponse.body().consume(m_HTTPResponse.body().size());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment