Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2018-07-30 19:16:42 +0300
committerAleksey Belousov <beloal@users.noreply.github.com>2018-08-10 20:16:14 +0300
commit98729c07f710b5b088307dc197e00f6f6569a0fb (patch)
treed7b7c4afdaecfed981bab64b72a418e98ea2783c /local_ads
parent693a9917286acd1646962e9bf292ed6f356c1b5c (diff)
[Core] Added user agent for http requests
Diffstat (limited to 'local_ads')
-rw-r--r--local_ads/statistics.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index d99a367c76..95039eba7b 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -423,6 +423,7 @@ void Statistics::SendFileWithMetadata(MetadataKey && metadataKey, Metadata && me
#endif
request.SetBodyData(std::string(bytes.begin(), bytes.end()), contentType, "POST",
contentEncoding);
+ request.SetUserAgent(GetPlatform().GetAppUserAgent());
if (request.RunHttpRequest() && request.ErrorCode() == 200)
{
GetPlatform().RunTask(Platform::Thread::File, [this, metadataKey = std::move(metadataKey),