From de92af7a23f9e433d1219da354eb10b7e873ae4e Mon Sep 17 00:00:00 2001 From: Aleksey Belousov Date: Mon, 27 Jan 2020 19:53:56 +0300 Subject: [PATCH] [iOS] add catalog headers to route download request --- map/bookmark_catalog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/map/bookmark_catalog.cpp b/map/bookmark_catalog.cpp index cd6d5464d8..773041892e 100644 --- a/map/bookmark_catalog.cpp +++ b/map/bookmark_catalog.cpp @@ -270,8 +270,7 @@ void BookmarkCatalog::Download(std::string const & id, std::string const & acces static uint32_t counter = 0; auto const path = base::JoinPath(GetPlatform().TmpDir(), "file" + strings::to_string(++counter)); - platform::RemoteFile remoteFile(BuildCatalogDownloadUrl(id), accessToken, - web_api::GetDefaultCatalogHeaders()); + platform::RemoteFile remoteFile(BuildCatalogDownloadUrl(id), accessToken, GetHeaders()); remoteFile.DownloadAsync(path, [startHandler = std::move(startHandler)](std::string const &) { if (startHandler)