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

http producer - Ignore content length header

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.22.0
    • 2.22.2, 2.23.0
    • camel-http, camel-http4
    • None
    • Unknown

    Description

      When doing eg REST -> HTTP etc then the REST consumer may populate the message with Content-Length header, which gets propagated to the http producer. We should by default ignore those existing headers and calculate the length in the producer based on the message body, eg if string, byte[] etc which AFAIR does today.

      See nabble
      http://camel.465427.n5.nabble.com/Content-Length-Header-being-used-previous-HTTP-Response-td5813376.html

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: