You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result = shift + this.read(buf, off + shift, len - shift);
but if the next chunck is EOF, the method return -1 and therefore the method claims to have read one less byte!
Instead the return value must be checked, and if it is < 1 nothing should be added (or substracted in the current case).
The text was updated successfully, but these errors were encountered:
In
ChunkedInputStream.read(byte[], int, int)
there is this code:takes/src/main/java/org/takes/rq/ChunkedInputStream.java
Line 112 in 20467cf
but if the next chunck is EOF, the method return -1 and therefore the method claims to have read one less byte!
Instead the return value must be checked, and if it is < 1 nothing should be added (or substracted in the current case).
The text was updated successfully, but these errors were encountered: