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

Commit c24ffcf

Browse files
authored
Merge pull request #425 from owncloud/fix/add_content_length_error
add error log when content-length not equal to transfaired bytes
2 parents 5852921 + fbf0fab commit c24ffcf

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)