Details
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
- is related to
-
CAMEL-19719 camel-rest - Infinite loop when maximumRedeliveries > 0
- Resolved
- links to