We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34094d commit 499b9f5Copy full SHA for 499b9f5
src/main/java/com/ning/http/client/providers/netty/BodyChunkedInput.java
@@ -58,7 +58,7 @@ public Object nextChunk() throws Exception {
58
endOfInput = true;
59
return null;
60
} else {
61
- endOfInput = r == contentLength || r < chunkSize;
+ endOfInput = r == contentLength || r < chunkSize && contentLength > 0;
62
buffer.flip();
63
return ChannelBuffers.wrappedBuffer(buffer);
64
}
0 commit comments