camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim085 <>
Subject Re: Why is the set body not being returned?
Date Thu, 22 Sep 2016 11:34:45 GMT
Hello again. It seems that it is something in the headers. I have added
".removeHeaders("*")" to the chain and now jetty is correctly returning the
set message through the "transform" call. 

i.e. this works - 

    	.setHeader(Exchange.HTTP_METHOD, constant("GET"))
		.to("jetty:" + 
    			"?bridgeEndpoint=true" + 
    	.log("THE BODY IS ${body}")

I saw the code of the "transform" method and I saw how this seems to make a
copy of the old message and then update the body. This is why I tried to
clear the headers.

So is this normal?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message