This is an automated email from the ASF dual-hosted git repository. apupier pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit 089182ec1346862718a16d3263e352a7dd22c21f Author: Aurélien Pupier <apup...@redhat.com> AuthorDate: Mon Apr 14 16:10:01 2025 +0200 Fix AS2 route following API breaking change in Camel 4.11 related to editContentType see https://github.com/apache/camel/commit/5d964ff96680d58985250701352de1a384ab6806 it avoids some errors in console log but the test is still failing Signed-off-by: Aurélien Pupier <apup...@redhat.com> --- as2/src/main/resources/META-INF/spring/camel-context.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/as2/src/main/resources/META-INF/spring/camel-context.xml b/as2/src/main/resources/META-INF/spring/camel-context.xml index 122a3f04..e22ebeec 100644 --- a/as2/src/main/resources/META-INF/spring/camel-context.xml +++ b/as2/src/main/resources/META-INF/spring/camel-context.xml @@ -70,7 +70,10 @@ UNZ+1+00000000000778' </constant> </transform> <setHeader name="CamelAs2.ediMessageContentType"> - <simple resultType="org.apache.hc.core5.http.ContentType">application/edifact;charset=US-ASCII</simple> + <constant>application/edifact</constant> + </setHeader> + <setHeader name="CamelAs2.ediMessageCharset"> + <constant>US-ASCII</constant> </setHeader> <setHeader name="CamelAs2.ediMessageTransferEncoding"> <constant>7bit</constant>