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

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


The following commit(s) were added to refs/heads/camel-4.10.x by this push:
     new 6aa734b1d79 CAMEL-22282: Removes CamelHttpPath header from http 
producer on bridge
6aa734b1d79 is described below

commit 6aa734b1d793822b7d6a9c07913a46fd448c6027
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 5e8b6fa0386..98d75b7412b 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
@@ -164,6 +164,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