This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 5a5f2e5847408144793ab957840f3b0c055e3b18 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Aug 26 14:09:05 2024 +0200 (chores) camel-platform-http: use more adequately sized buffers --- .../camel/component/platform/http/JettyCustomPlatformHttpConsumer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java index 5ba75f86279..7547c9f2ee4 100644 --- a/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java +++ b/components/camel-platform-http/src/test/java/org/apache/camel/component/platform/http/JettyCustomPlatformHttpConsumer.java @@ -84,7 +84,7 @@ public class JettyCustomPlatformHttpConsumer extends DefaultConsumer implements public boolean handle(Request request, Response response, Callback callback) throws Exception { Exchange exchg = null; try { - StringBuilder bodyRequest = new StringBuilder(); + StringBuilder bodyRequest = new StringBuilder(1024); while (true) { Content.Chunk chunk = request.read(); if (chunk.isLast()) {
