Merge pull request #400 from fredericBregier/3

Damn ! Fix typo and type needed for fix #399 for issue #398
Sorry!
This commit is contained in:
Frédéric Brégier 2012-06-15 10:42:56 -07:00
commit e8595e9d87

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);
}