Added support for gzip-encoded downloads. Closes #89.

This commit is contained in:
daniel oeh 2013-01-13 20:50:55 +01:00
parent aa62e7c7ac
commit a39fed6757
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class HttpDownloader extends Downloader {
File destination = new File(status.getFeedFile() File destination = new File(status.getFeedFile()
.getFile_url()); .getFile_url());
if (!destination.exists()) { if (!destination.exists()) {
connection = httpEntity.getContent(); connection = AndroidHttpClient.getUngzippedContent(httpEntity);
InputStream in = new BufferedInputStream(connection); InputStream in = new BufferedInputStream(connection);
out = new BufferedOutputStream(new FileOutputStream( out = new BufferedOutputStream(new FileOutputStream(
destination)); destination));