and redirects
to the given location.
--
View this message in context:
http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905p5787938.html
Sent from the Camel - Users mailing list archive at Nabble.com.
: Donnerstag, 22. September 2016 13:35
To: users@camel.apache.org
Subject: Re: Why is the set body not being returned?
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 th
sform(constant("OK"))
.log("THE BODY IS ${body}")
.removeHeaders("*");
[/code]
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.
"OK" in both browser and
console.
So why does setBody work when e.getOut().setBody(...) is used but not if
this is used without the processor?
<http://camel.465427.n5.nabble.com/file/n5787905/screenshot.png>
--
View this message in context:
http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905.html
Sent from the Camel - Users mailing list archive at Nabble.com.
}
> })
> // .setBody(constant("OK")) // LINE 1
> .log("THE BODY IS ${body}");
> [/code]
>
> The above without LINE 1 remarked returns "HELLO" in both browser and
> console and with LINE 1 not remarked it returns "OK" in both