On Tue, Aug 24, 2021 at 6:32 PM Calle Andersson <calleanders...@hotmail.com> wrote: > > I finally found a solution to my problem. It turned out 'contentTypeHeader' > could be set to 'false' in the following simple way: > restConfiguration().dataFormatProperty("contentTypeHeader", "false")... > > Now I am able to return responses with custom Content-Type values. >
Thanks for sharing the solution. You are welcome to help improve the rest-dsl documentation page (click edit this page) and add a section covering this use-case and how to turn that off. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2