You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2023/08/02 13:22:54 UTC

[camel] branch main updated: whatsapp expect challenge during wh configuration

This is an automated email from the ASF dual-hosted git repository.

fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new f6dd6058a45 whatsapp expect challenge during wh configuration
f6dd6058a45 is described below

commit f6dd6058a45351e87a1749cc5ef0f2d7b2e4f0e8
Author: Croway <fe...@gmail.com>
AuthorDate: Wed Aug 2 14:21:12 2023 +0200

    whatsapp expect challenge during wh configuration
---
 .../apache/camel/component/whatsapp/WhatsAppWebhookProcessor.java  | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/WhatsAppWebhookProcessor.java b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/WhatsAppWebhookProcessor.java
index 0099f125378..a9fd4368b28 100644
--- a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/WhatsAppWebhookProcessor.java
+++ b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/WhatsAppWebhookProcessor.java
@@ -90,12 +90,7 @@ public class WhatsAppWebhookProcessor extends AsyncProcessorSupport implements A
         exchange.getMessage().setBody(content);
 
         return next.process(exchange, doneSync -> {
-            // No response data expected
-            if (!isGet.get()) {
-                exchange.getMessage().setBody(content);
-            } else {
-                exchange.getMessage().setBody("");
-            }
+            exchange.getMessage().setBody(content);
 
             callback.done(doneSync);
         });