Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19018

camel-vertx-http: Headers may get erroneously duplicated

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Given routes configured like this:

      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}");
      

      When using cURL to POST to /greeting, the response reveals some of the headers get duplicated:

      < 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]
      

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: