From e71bbf2bbb1917aa5198164209cdc23ac0b7c343 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 24 Oct 2018 20:11:46 +0200 Subject: don't use compression for HttpDownloads --- src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java index efdfdc61e..15bfc8825 100644 --- a/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java +++ b/src/main/java/de/pixart/messenger/http/HttpDownloadConnection.java @@ -296,6 +296,7 @@ public class HttpDownloadConnection implements Transferable { connection.setUseCaches(false); Log.d(Config.LOGTAG, "url: " + connection.getURL().toString()); connection.setRequestProperty("User-Agent", mXmppConnectionService.getIqGenerator().getIdentityName()); + connection.setRequestProperty("Accept-Encoding", "identity"); if (connection instanceof HttpsURLConnection) { mHttpConnectionManager.setupTrustManager((HttpsURLConnection) connection, interactive); } @@ -377,6 +378,7 @@ public class HttpDownloadConnection implements Transferable { } connection.setUseCaches(false); connection.setRequestProperty("User-Agent", mXmppConnectionService.getIqGenerator().getIdentityName()); + connection.setRequestProperty("Accept-Encoding", "identity"); final boolean tryResume = file.exists() && file.getKey() == null && file.getSize() > 0; long resumeSize = 0; long expected = file.getExpectedSize(); -- cgit v1.2.3