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:01 UTC

[camel] branch camel-3.21.x updated: CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11368)

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

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


The following commit(s) were added to refs/heads/camel-3.21.x by this push:
     new 31ceed4f21f CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11368)
31ceed4f21f is described below

commit 31ceed4f21fd699e00cb1a5cbb374b733dd9f997
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 13 07:31:55 2023 +0200

    CAMEL-19852 - Camel-platform-http-vertx: Always use normalized path from context (#11368)
    
    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 cef371bd0bf..ed0e62b2eb4 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
@@ -215,7 +215,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();