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 8ce7fb6 commit adf8ca8Copy full SHA for adf8ca8
java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/BufferedByteConsumer.java
@@ -55,7 +55,7 @@ protected int capacityIncrement() {
55
56
@Override
57
protected void data(final ByteBuffer src, final boolean endOfStream) throws ContentTooLongException {
58
- if (src.capacity() > limit) {
+ if (buffer.length() + src.limit() > limit) {
59
throw new ContentTooLongException(
60
"entity content is too long [" + src.capacity() + "] for the configured buffer limit [" + limit + "]"
61
);
0 commit comments