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 1f32fdb6c29 CAMEL-22282: Removes CamelHttpPath header from http 
producer on bridge
1f32fdb6c29 is described below

commit 1f32fdb6c294048acbc968cfd8ab8a55831c842c
Author: Marco Carletti <[email protected]>
AuthorDate: Tue Jul 29 10:51:52 2025 +0200

    CAMEL-22282: Removes CamelHttpPath header from http producer on bridge
---
 .../src/main/java/org/apache/camel/component/http/HttpProducer.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
 
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
index 672eb853f7e..c112b268f3b 100644
--- 
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
+++ 
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java
@@ -168,6 +168,8 @@ public class HttpProducer extends DefaultProducer 
implements LineNumberAware {
             if (queryString != null) {
                 skipRequestHeaders = URISupport.parseQuery(queryString, false, 
true);
             }
+            //to avoid to append raw http path to the bridged url
+            exchange.getIn().setHeader(HttpConstants.HTTP_PATH, "");
         }
 
         HttpUriRequest httpRequest = createMethod(exchange);

Reply via email to