From afa2d656839f5b500f7fb647dda75028b2bec097 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Sun, 21 Aug 2022 04:40:17 +0300 Subject: [PATCH] [downloader] Add app version to metaserver requests This is needed to support old clients and dynamic data updates. Signed-off-by: Roman Tsisyk --- storage/map_files_downloader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/map_files_downloader.cpp b/storage/map_files_downloader.cpp index 4a9c482262..342f8cbfab 100644 --- a/storage/map_files_downloader.cpp +++ b/storage/map_files_downloader.cpp @@ -159,6 +159,7 @@ MetaConfig MapFilesDownloader::LoadMetaConfig() { platform::HttpClient request(metaServerUrl); request.SetRawHeader("X-OM-DataVersion", std::to_string(m_dataVersion)); + request.SetRawHeader("X-OM-AppVersion", GetPlatform().Version()); request.SetTimeout(10.0); // timeout in seconds request.RunHttpRequest(httpResult); }