diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-03-19 01:56:31 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-03-19 01:56:31 +0000 |
commit | a5f90929fb89226c0ee3e6290c28d3910724351f (patch) | |
tree | 7e5120164617329bec3ff20afdee7a72999e20e4 | |
parent | 35c63e22881a6dccbd350923f9a1d3e71023cc3f (diff) | |
parent | 844782d81e12d8bd13c9b26a5f7aab3f4be81b5a (diff) | |
download | android_packages_providers_DownloadProvider-a5f90929fb89226c0ee3e6290c28d3910724351f.tar.gz android_packages_providers_DownloadProvider-a5f90929fb89226c0ee3e6290c28d3910724351f.tar.bz2 android_packages_providers_DownloadProvider-a5f90929fb89226c0ee3e6290c28d3910724351f.zip |
am 844782d8: Defeat transparent Accept-Encoding: gzip.
* commit '844782d81e12d8bd13c9b26a5f7aab3f4be81b5a':
Defeat transparent Accept-Encoding: gzip.
-rw-r--r-- | src/com/android/providers/downloads/DownloadThread.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index a0b3e54a..f1add241 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -818,6 +818,10 @@ public class DownloadThread implements Runnable { conn.addRequestProperty("User-Agent", userAgent()); } + // Defeat transparent gzip compression, since it doesn't allow us to + // easily resume partial downloads. + conn.setRequestProperty("Accept-Encoding", "identity"); + if (state.mContinuingDownload) { if (state.mHeaderETag != null) { conn.addRequestProperty("If-Match", state.mHeaderETag); |