From e7176da7a89c0a0828dfb9f1d9bc03dace5678ef Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Wed, 23 Jun 2021 01:18:31 +0200 Subject: [PATCH] Removed unnecessary Accept-Encoding header Both iOS and Android HTTP connections transparently support gzip Signed-off-by: Alexander Borsuk --- platform/http_client.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/http_client.cpp b/platform/http_client.cpp index 79af43b585..9eb74e9b38 100644 --- a/platform/http_client.cpp +++ b/platform/http_client.cpp @@ -12,11 +12,6 @@ namespace platform { HttpClient::HttpClient(string const & url) : m_urlRequested(url) { -// Http client for linux supports only "deflate" encoding, but osrm server cannot -// correctly process "Accept-Encoding: deflate" header, so do not encode data on linux. -#if !defined(OMIM_OS_LINUX) - m_headers.emplace("Accept-Encoding", "gzip, deflate"); -#endif } bool HttpClient::RunHttpRequest(string & response, SuccessChecker checker /* = nullptr */)