go back to unsetting addDummy
@@ -1115,7 +1115,7 @@ private BoundedInputStream createBoundedInputStream(long start, long remaining)
public synchronized int read() throws IOException {
if (loc >= end) {
if (loc == end && addDummy) {
- ++loc;
+ addDummy = false;
return 0;
}
return -1;
@@ -1143,7 +1143,7 @@ public synchronized int read(final byte[] b, final int off, int len) throws IOEx
if (len > end-loc) {
if (loc >= end) {
if (loc == end && addDummy) {
- ++loc;
+ addDummy = false;
b[off] = 0;
return 1;
}
