Added support for gzip-encoded downloads. Closes #89.
This commit is contained in:
parent
aa62e7c7ac
commit
a39fed6757
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue