1
0
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:
Christian Schabesberger 2021-08-17 12:41:35 +02:00
parent 5852921764
commit fbf0fab800

View File

@ -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!
} }