parent
1f696fa2f1
commit
bab98ab969
@ -292,8 +292,8 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData {
|
|||||||
int chunkSize = 8196;
|
int chunkSize = 8196;
|
||||||
long position = 0;
|
long position = 0;
|
||||||
while (position < size) {
|
while (position < size) {
|
||||||
if (chunksize < size - position) {
|
if (chunkSize < size - position) {
|
||||||
chunksize = size - position;
|
chunkSize = (int) (size - position);
|
||||||
}
|
}
|
||||||
position += in.transferTo(position, chunkSize , out);
|
position += in.transferTo(position, chunkSize , out);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user