blob: c8a42262a76998bbed33eaec14c6ae6bc2a7dfe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "platform/http_user_agent.hpp"
#include "std/target_os.hpp"
#include <sstream>
namespace platform
{
HttpUserAgent::HttpUserAgent()
{
m_appVersion = ExtractAppVersion();
}
std::string HttpUserAgent::Get() const
{
std::stringstream ss;
ss << "MAPS.ME/";
#if defined(OMIM_OS_IPHONE)
ss << "iOS/";
#elif defined(OMIM_OS_ANDROID)
ss << "Android/";
#else
ss << "Unknown/";
#endif
ss << m_appVersion;
return ss.str();
}
} // platform
|