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 5a93a01ebd71b7f6f9b0cf26bd48bfb1938a24bc
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Jun 21 09:17:44 2022 +0200

    (chores) camel-platform-http-vertx: removed unused parameters
---
 .../camel/component/platform/http/vertx/VertxPlatformHttpSupport.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpSupport.java
 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpSupport.java
index e2ec4dda423..0a55082f21d 100644
--- 
a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpSupport.java
+++ 
b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpSupport.java
@@ -116,7 +116,7 @@ public final class VertxPlatformHttpSupport {
         }
 
         // set the content-length if it can be determined, or chunked encoding
-        final Integer length = determineContentLength(exchange, body);
+        final Integer length = determineContentLength(body);
         if (length != null) {
             response.putHeader("Content-Length", String.valueOf(length));
         } else {
@@ -132,7 +132,7 @@ public final class VertxPlatformHttpSupport {
         return body;
     }
 
-    static Integer determineContentLength(Exchange camelExchange, Object body) 
{
+    static Integer determineContentLength(Object body) {
         if (body instanceof byte[]) {
             return ((byte[]) body).length;
         } else if (body instanceof ByteBuffer) {

Reply via email to