You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/09/13 05:32:28 UTC

[camel] branch main updated: CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11365)

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


The following commit(s) were added to refs/heads/main by this push:
     new 42d2afa3f0e CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11365)
42d2afa3f0e is described below

commit 42d2afa3f0e5f36423a33aeafd58dae694fbbd81
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 13 07:32:22 2023 +0200

    CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11365)
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../camel/component/platform/http/vertx/VertxPlatformHttpSupport.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 15049773b14..2852dc8bad7 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
@@ -216,7 +216,7 @@ public final class VertxPlatformHttpSupport {
             HeaderFilterStrategy headerFilterStrategy) {
 
         final HttpServerRequest request = ctx.request();
-        headersMap.put(Exchange.HTTP_PATH, request.path());
+        headersMap.put(Exchange.HTTP_PATH, ctx.normalizedPath());
 
         if (headerFilterStrategy != null) {
             final MultiMap requestHeaders = request.headers();