diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2016-09-26 13:53:00 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2016-09-27 20:12:52 +0300 |
commit | c4a7e985b75966e02bd1316201e0fd441b658410 (patch) | |
tree | 90e8560aa620cdb7f9d8a1a46060d31c22ed9b89 /routing | |
parent | bda598461b3503f3f43178bfc23887c63ae54b1f (diff) |
http client was copied from alohalytics to our code with small changes
Diffstat (limited to 'routing')
-rw-r--r-- | routing/online_cross_fetcher.cpp | 2 | ||||
-rw-r--r-- | routing/online_cross_fetcher.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routing/online_cross_fetcher.cpp b/routing/online_cross_fetcher.cpp index 5602a82899..27e6c36f0e 100644 --- a/routing/online_cross_fetcher.cpp +++ b/routing/online_cross_fetcher.cpp @@ -62,7 +62,7 @@ OnlineCrossFetcher::OnlineCrossFetcher(string const & serverURL, ms::LatLon cons void OnlineCrossFetcher::Do() { m_mwmPoints.clear(); - if (m_request.RunHTTPRequest() && m_request.error_code() == 200 && !m_request.was_redirected()) + if (m_request.RunHttpRequest() && m_request.error_code() == 200 && !m_request.was_redirected()) ParseResponse(m_request.server_response(), m_mwmPoints); else LOG(LWARNING, ("Can't get OSRM server response. Code: ", m_request.error_code())); diff --git a/routing/online_cross_fetcher.hpp b/routing/online_cross_fetcher.hpp index 0951830ebe..7543af4efe 100644 --- a/routing/online_cross_fetcher.hpp +++ b/routing/online_cross_fetcher.hpp @@ -1,6 +1,6 @@ #pragma once -#include "3party/Alohalytics/src/http_client.h" +#include "platform/http_client.hpp" #include "geometry/point2d.hpp" #include "geometry/latlon.hpp" @@ -47,7 +47,7 @@ public: vector<m2::PointD> const & GetMwmPoints() { return m_mwmPoints; } private: - alohalytics::HTTPClientPlatformWrapper m_request; + platform::HttpClient m_request; vector<m2::PointD> m_mwmPoints; }; } |