camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <>
Subject [jira] Commented: (CAMEL-324) bad content length header value in http response
Date Tue, 12 Feb 2008 18:36:35 GMT


Gary Tully commented on CAMEL-324:

Hi Alex,
I am having difficulty reproducing the behaviour you describe. In writeResponse[1] on trunk,
 the headers are correctly copied from the out message, not from the request. The out message
defaults to an empty DefaultMessage which would have no headers.

Would it be possible to provide a test route or xml config fragment or some more detail?


> bad content length header value in http response
> ------------------------------------------------
>                 Key: CAMEL-324
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 1.3.0
>            Reporter: alex c
>            Assignee: Gary Tully
>            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

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

View raw message