mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Added AbstractHandler, WrapHandler. HTTPClient Fixes.
This commit is contained in:
@@ -54,17 +54,17 @@ public:
|
||||
|
||||
ScopedPointer <HTTPClientBase> client (HTTPClientBase::New ());
|
||||
|
||||
HTTPClientBase::Result httpResult (client->get (m_url));
|
||||
HTTPClientBase::result_type httpResult (client->get (m_url));
|
||||
|
||||
if (httpResult.error == 0)
|
||||
if (httpResult.first == 0)
|
||||
{
|
||||
//Logger::outputDebugString (httpResult.response->toString ());
|
||||
//Logger::outputDebugString (httpResult.second->toString ());
|
||||
}
|
||||
else
|
||||
{
|
||||
journal.error <<
|
||||
"HTTP GET to " << m_url.full().toStdString() <<
|
||||
" failed: '" << httpResult.error.message () << "'";
|
||||
" failed: '" << httpResult.first.message () << "'";
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user