urunni88 commented on code in PR #27787:
URL: https://github.com/apache/camel/pull/27787#discussion_r4260154853
##########
components/camel-http/src/main/java/org/apache/camel/component/http/HttpProducer.java:
##########
@@ -211,10 +210,8 @@ public void process(Exchange exchange) throws Exception {
continue;
}
- // use an iterator as there can be multiple values.
(must not use a delimiter, and allow empty values)
- final Iterator<?> it =
ObjectHelper.createIterator(headerValue, null, true);
-
- HttpUtil.applyHeader(strategy, exchange, it, tc, key,
+ // a collection or an object array is sent as one
header per value; any other value is a single header
Review Comment:
Updated the comment to mention that an Iterable that is not a Collection is
sent as a single header. The upgrade guide entry notes this too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]