This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push: new e1a8c26 Set RestWithRestlet response Content-Type header to text/plain new 046a58c Merge pull request #738 from jamesnetherton/restlet-content-type-set e1a8c26 is described below commit e1a8c261638cf5150e21c3107bc50fb6e397f74d Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Tue Jun 11 09:42:48 2019 +0100 Set RestWithRestlet response Content-Type header to text/plain --- examples/RestWithRestlet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/RestWithRestlet.java b/examples/RestWithRestlet.java index ffdefce..df9100b 100644 --- a/examples/RestWithRestlet.java +++ b/examples/RestWithRestlet.java @@ -20,6 +20,8 @@ // // kamel run --name=rest-with-restlet --dependency=camel-restlet examples/RestWithRestlet.java // +import org.apache.camel.Exchange; + public class RestWithRestlet extends org.apache.camel.builder.RouteBuilder { @Override public void configure() throws Exception { @@ -33,6 +35,7 @@ public class RestWithRestlet extends org.apache.camel.builder.RouteBuilder { .to("direct:hello"); from("direct:hello") + .setHeader(Exchange.CONTENT_TYPE, constant("text/plain")) .transform().simple("Hello World"); } } \ No newline at end of file