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

camel-ahc does not support multi-value HTTP headers properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.19.1
    • 2.20.0
    • camel-ahc
    • None
    • Unknown

    Description

      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).

      Attachments

        Activity

          People

            siano Stephan Siano
            siano Stephan Siano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: