mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
add error log when content-length not equal to transfaired bytes
This commit is contained in:
parent
5852921764
commit
fbf0fab800
@ -159,6 +159,8 @@ public class DownloadRemoteFileOperation extends RemoteOperation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Timber.e("Content-Length not equal to transferred bytes.");
|
||||||
|
Timber.d("totalToTransfer = %d, transferred = %d", totalToTransfer, transferred);
|
||||||
client.exhaustResponse(mGet.getResponseBodyAsStream());
|
client.exhaustResponse(mGet.getResponseBodyAsStream());
|
||||||
// TODO some kind of error control!
|
// TODO some kind of error control!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user