diff options
-rw-r--r-- | android/src/com/mapswithme/util/HttpClient.java | 3 | ||||
-rw-r--r-- | platform/http_client.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/util/HttpClient.java b/android/src/com/mapswithme/util/HttpClient.java index 39556515ef..76d3881f34 100644 --- a/android/src/com/mapswithme/util/HttpClient.java +++ b/android/src/com/mapswithme/util/HttpClient.java @@ -46,6 +46,7 @@ import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.zip.GZIPInputStream; +import java.util.zip.InflaterInputStream; public final class HttpClient { @@ -204,6 +205,8 @@ public final class HttpClient { if ("gzip".equals(connection.getContentEncoding())) in = new GZIPInputStream(connection.getInputStream()); + else if ("deflate".equals(connection.getContentEncoding())) + in = new InflaterInputStream(connection.getInputStream()); else in = connection.getInputStream(); } diff --git a/platform/http_client.cpp b/platform/http_client.cpp index b4c63faba1..3ed40624f8 100644 --- a/platform/http_client.cpp +++ b/platform/http_client.cpp @@ -10,7 +10,7 @@ namespace platform { HttpClient::HttpClient(string const & url) : m_urlRequested(url) { - m_headers.emplace("Accept-Encoding", "gzip"); + m_headers.emplace("Accept-Encoding", "gzip, deflate"); } HttpClient & HttpClient::SetUrlRequested(string const & url) |