You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2019/09/06 07:43:05 UTC
[httpcomponents-core] 01/01: HTTPCORE-597:
AsyncEntityProducers#createText always throws IllegalArgumentException
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch bug-fixes
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit 0cb51672f7316b8b4423a78bec4cab5cea4e0059
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Sep 6 09:42:47 2019 +0200
HTTPCORE-597: AsyncEntityProducers#createText always throws IllegalArgumentException
---
.../java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
index 4fca51d..3fd20d1 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
@@ -115,7 +115,7 @@ public final class AsyncEntityProducers {
public static AsyncEntityProducer createText(
final Callback<StreamChannel<CharBuffer>> callback,
final ContentType contentType) {
- return new AbstractCharAsyncEntityProducer(0, 4096, contentType) {
+ return new AbstractCharAsyncEntityProducer(4096, 2048, contentType) {
@Override
protected int availableData() {