Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2680

Content-Type header is repeated when specified in a header enricher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.2 M4 Sprint 3, 2.2 M4
    • Component/s: HTTP Support
    • Labels:
      None
    • Environment:

      Description

      When the user wants to override the content-type header, he would add it to the mapped-response-headers in the int-http:inbound-gateway and enrich the message header before passing it to the reply channel. However it looks like the content-type inj the message converter is being specified even if there is a content-type header in place, resulting in a duplicate content-type header. See the sample application attached for more details.

      To run the application, type mvn package jetty:run in one console and in another console use curl to connect to the running instance: curl -v http://localhost:8080/photo > /dev/null

        Attachments

          Activity

            People

            Assignee:
            hillert Gunnar Hillert
            Reporter:
            joem86 Joe McCall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: