1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #425 from owncloud/fix/add_content_length_error

add error log when content-length not equal to transfaired bytes
This commit is contained in:
Christian Schabesberger 2021-08-18 17:13:20 +02:00 committed by GitHub
commit c24ffcfaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,8 @@ public class DownloadRemoteFileOperation extends RemoteOperation {
}
} else {
Timber.e("Content-Length not equal to transferred bytes.");
Timber.d("totalToTransfer = %d, transferred = %d", totalToTransfer, transferred);
client.exhaustResponse(mGet.getResponseBodyAsStream());
// TODO some kind of error control!
}