Its using regular expressions so make sure that you use correct java reg exps.




On Wed, Feb 8, 2017 at 1:53 PM, souciance
<[email protected]> wrote:
> Hello,
>
> I am trying to remove headers like this:
>
> .removeHeaders("\\w+Accept\\w+", "\\w+Authorization\\w+", "\\w+Camel\\w+",
> "\\w+Host\\w+", "\\w+Origin\\w+", "\\w+Postman\\w+", "\\w+Connection\\w+",
> "\\w+Content-Length\\w+", "\\w+Content-Type\\w+", "\\w+VALID_SIP2\\w+" ,
> "\\w+SIP2_MESSAGE_RABBITMQ_ROUTING_KEY\\w+")
>
> However after I print the log all the headers are still there. I have also
> tried with .* on both ends but that didn't work either. I tried with single
> * at the end and same result there. Is there any other way to remove
> headers?
>
> Best
> Souciance
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Removing-headers-tp5793667.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to