camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alex c (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-324) bad content length header value in http response
Date Sun, 10 Feb 2008 10:31:35 GMT
bad content length header value in http response
------------------------------------------------

                 Key: CAMEL-324
                 URL: https://issues.apache.org/activemq/browse/CAMEL-324
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-http
    Affects Versions: 1.3.0
            Reporter: alex c
            Priority: Critical


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.
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message