Stephan Siano created CAMEL-11662:
-------------------------------------

             Summary: camel-ahc does not support multi-value HTTP headers 
properly
                 Key: CAMEL-11662
                 URL: https://issues.apache.org/jira/browse/CAMEL-11662
             Project: Camel
          Issue Type: Bug
          Components: camel-ahc
    Affects Versions: 2.19.1
            Reporter: Stephan Siano
            Assignee: Stephan Siano
            Priority: Minor
             Fix For: 2.20.0


The camel-ahc component does not support multi-value HTTP headers properly.

If the camel message contains a header with a list value the list is converted 
into a String before setting it to a header, which is not the proper format for 
a multi-value http header.

Example: If the camel header named "to" has a value of type List<String>, which 
contains the elements "foo" and "bar" the generated HTTP header named "to" will 
have the value "[ foo, bar]"

According to RFC 7230 section 3.2.2 this is the wrong format. There should be a 
single line generated from it, but the list should simply be comma separated 
("foo,bar" without the square brackets).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to