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

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

commit fff8054164eaaff9a531d99ee0426cc4d8696266
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Feb 26 07:16:48 2025 +0100

    CAMEL-21799: camel-coap - Exchange retrieve only the last block of Blockwise
---
 .../src/main/java/org/apache/camel/coap/CamelCoapResource.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
 
b/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
index dc4e0cfa995..25cd4fc109a 100644
--- 
a/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
+++ 
b/components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
@@ -134,7 +134,7 @@ final class CamelCoapResource extends CoapResource {
                 res++;
             }
 
-            byte[] bytes = exchange.getCurrentRequest().getPayload();
+            byte[] bytes = exchange.getRequest().getPayload();
             camelExchange.getIn().setBody(bytes);
 
             consumer.getProcessor().process(camelExchange);

Reply via email to