Merge pull request #2550 from ByteHamster/download-range
Hotfix for servers not accepting the Range header
This commit is contained in:
commit
287bb5f7e1
@ -93,7 +93,7 @@ public class HttpDownloader extends Downloader {
|
||||
|
||||
|
||||
// add range header if necessary
|
||||
if (fileExists) {
|
||||
if (fileExists && destination.length() > 0) {
|
||||
request.setSoFar(destination.length());
|
||||
httpReq.addHeader("Range", "bytes=" + request.getSoFar() + "-");
|
||||
Log.d(TAG, "Adding range header: " + request.getSoFar());
|
||||
|
Loading…
x
Reference in New Issue
Block a user