You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2023/02/07 13:26:00 UTC

[jira] [Resolved] (CAMEL-19018) camel-vertx-http: Headers may get erroneously duplicated

     [ https://issues.apache.org/jira/browse/CAMEL-19018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Netherton resolved CAMEL-19018.
-------------------------------------
    Resolution: Fixed

> camel-vertx-http: Headers may get erroneously duplicated 
> ---------------------------------------------------------
>
>                 Key: CAMEL-19018
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19018
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-vertx-http
>    Affects Versions: 3.18.5, 3.20.2, 4.0-M1
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Major
>             Fix For: 3.18.6, 3.20.3, 3.21.0, 4.0-M2
>
>
> Given routes configured like this:
> {code}
> rest()
>         .post("/greeting")
>         .to("direct:greet")
>         .post("/hello")
>         .to("direct:hello");
> from("direct:greet")
>         .removeHeaders("CamelHttp*")
>         .to("vertx-http:http://localhost:8080/hello?httpMethod=POST");
> from("direct:hello")
>         .setBody().simple("Hello ${body}");
> {code}
> When using cURL to POST to /greeting, the response reveals some of the headers get duplicated:
> {code}
> < HTTP/1.1 200 OK
> < Accept: */*
> < Accept: */*
> < User-Agent: curl/7.81.0
> < User-Agent: Vert.x-WebClient/4.3.7
> < User-Agent: curl/7.81.0
> < Content-Length: 17
> < Content-Type: [application/json, application/json]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)