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

http producer - Ignore content length header

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.0
    • Fix Version/s: 2.22.2, 2.23.0
    • Component/s: camel-http, camel-http4
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: