diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-01-13 20:50:55 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-01-13 20:50:55 +0100 |
commit | a39fed6757cf2f798c419b4b13016636d24a224a (patch) | |
tree | a6618634742384f4e6894ef45a76b5cba19edb99 | |
parent | aa62e7c7ac029b1befbb4a538c613a9673a2744e (diff) | |
download | AntennaPod-a39fed6757cf2f798c419b4b13016636d24a224a.zip |
Added support for gzip-encoded downloads. Closes #89.
-rw-r--r-- | src/de/danoeh/antennapod/service/download/HttpDownloader.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |