Damn ! Fix typo and type needed for fix #399 for issue #398

This commit is contained in:
Frédéric Brégier 2012-06-15 20:40:44 +03:00
parent 1f696fa2f1
commit bab98ab969

View File

@ -292,8 +292,8 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData {
int chunkSize = 8196;
long position = 0;
while (position < size) {
if (chunksize < size - position) {
chunksize = size - position;
if (chunkSize < size - position) {
chunkSize = (int) (size - position);
}
position += in.transferTo(position, chunkSize , out);
}