fix bug: set inner buffer limit
This commit is contained in:
parent
8264742779
commit
31995a1fb9
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ public final class BufferedInputStreamWrapper implements BufferedInputStream {
|
|||
} else {
|
||||
//# Forward large read to the underlying stream.
|
||||
this.buf.clear();
|
||||
this.buf.limit(0);
|
||||
return fromFirstBuffer + readAtLeast(this.inner, dst, numBytes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue