Merge pull request #1724 from Alexander-Ger-Reich/Alexander-Ger-Reich-patch-1

Fixing a data transfer error
This commit is contained in:
Tobias Kaminsky
2025-06-25 09:47:50 +02:00
committed by GitHub

View File

@ -103,7 +103,7 @@ public class ChunkFromFileChannelRequestEntity implements RequestEntity, Progres
if (size == 0) {
size = -1;
}
long maxCount = Math.min(mOffset + length - 1, mChannel.size());
long maxCount = Math.min(mOffset + length, mChannel.size());
while (mChannel.position() < maxCount) {
readCount = mChannel.read(mBuffer);
try {