Update offset sooner (Before getting any exceptions)
This commit is contained in:
parent
6e4331d9f7
commit
aec7fe1704
@ -94,9 +94,9 @@ public class ChunkedStream implements ChunkedInput {
|
||||
break;
|
||||
}
|
||||
readBytes += localReadBytes;
|
||||
offset += readBytes;
|
||||
}
|
||||
|
||||
offset += readBytes;
|
||||
return wrappedBuffer(chunk, 0, readBytes);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user