From a39fed6757cf2f798c419b4b13016636d24a224a Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sun, 13 Jan 2013 20:50:55 +0100 Subject: [PATCH] Added support for gzip-encoded downloads. Closes #89. --- src/de/danoeh/antennapod/service/download/HttpDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/danoeh/antennapod/service/download/HttpDownloader.java b/src/de/danoeh/antennapod/service/download/HttpDownloader.java index 05df9163b..af72ab69f 100644 --- a/src/de/danoeh/antennapod/service/download/HttpDownloader.java +++ b/src/de/danoeh/antennapod/service/download/HttpDownloader.java @@ -70,7 +70,7 @@ public class HttpDownloader extends Downloader { File destination = new File(status.getFeedFile() .getFile_url()); if (!destination.exists()) { - connection = httpEntity.getContent(); + connection = AndroidHttpClient.getUngzippedContent(httpEntity); InputStream in = new BufferedInputStream(connection); out = new BufferedOutputStream(new FileOutputStream( destination));