Hi,

I just checked the code of HttpProducer, the document is right, the header copying code was commented out by accident 2 month ago and I can't remember why I commented this code. I will revert the change and add an unit test for it[1] so you can get the in message header back in coming up Camel 2.0.

Thanks for reporting this issue.

[1] https://issues.apache.org/activemq/browse/CAMEL-1813

Willem

SwenVogel wrote:
Hi,

im using version 2.0-M2 and the HTTP component documentation says:

All headers from the IN message will be copied to the OUT message, so
headers are preserved during routing.

But when i process the IN message after an HTTP component always all headers
are lost
and only the HTTP response headers are populated

For example i have the following header in the IN message:
postPartnerServiceSlip =
file:c:/ttf/log/postPartnerService?fileName=message.xml

after processing of the HTTP component only the following headers exists,
but no postPartnerServiceSlip header:

Content-Length = 3616
CamelContentType = text/html; charset=utf-8
CamelHttpResponseCode = 403
Connection = Keep-Alive

I looked at the
org.apache.camel.component.http.HttpProducer.populateResponse() method
and also could not find the code that copies the IN headers to the OUT
message.


thanks for your help

Reply via email to