Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit fbf0fab

Browse files
committed
add error log when content-length not equal to transfaired bytes
1 parent 5852921 commit fbf0fab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/DownloadRemoteFileOperation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ private RemoteOperationResult downloadFile(OwnCloudClient client, File targetFil
159159
}
160160

161161
} else {
162+
Timber.e("Content-Length not equal to transferred bytes.");
163+
Timber.d("totalToTransfer = %d, transferred = %d", totalToTransfer, transferred);
162164
client.exhaustResponse(mGet.getResponseBodyAsStream());
163165
// TODO some kind of error control!
164166
}

0 commit comments

Comments
 (0)