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

bad content length header value in http response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • camel-http
    • None

    Description

      By default HttpBinding class copies all request header attributes from the request to the response including 'Content-Length'. So the consequence is that the response is declaring the same size as the request which can lead to serious truncation problems!

      the workaround is simply to add the line:
      out.removeHeader("Content-Length");
      in the writeResponse method of the httpbinding class allowing jetty to set the right value.

      Attachments

        Activity

          People

            gtully Gary Tully
            alexc Alex Cichowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: