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

bad content length header value in http response

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: camel-http
    • Labels:
      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

            • Assignee:
              gtully Gary Tully
              Reporter:
              alexc Alex Cichowski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: