You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2017/03/16 17:44:41 UTC

[jira] [Assigned] (CAMEL-11028) camel-spark-rest - Adds duplicate content-type

     [ https://issues.apache.org/jira/browse/CAMEL-11028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino reassigned CAMEL-11028:
----------------------------------------

    Assignee: Andrea Cosentino

> camel-spark-rest - Adds duplicate content-type
> ----------------------------------------------
>
>                 Key: CAMEL-11028
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11028
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.18.3
>            Reporter: Adam Dougal
>            Assignee: Andrea Cosentino
>
> This is essentially the same as https://issues.apache.org/jira/browse/CAMEL-9613 . When I send a request containing a 'content-type' header it will get sent with duplicate values. E.g. Content-Type: \[application/json, application/json\].
> My RouteBuilder is very simple at the moment:
> {code}
> restConfiguration().component("spark-rest").port(8585);
> rest("/").post("/charges").to("direct:charges");
> from("direct:charges").to("http://localhost:8080/charges?bridgeEndpoint=true&throwExceptionOnFailure=false");
> {code}
> Having looked at the code I can see it being added in two places:
> https://github.com/apache/camel/blob/master/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/DefaultSparkBinding.java#L73
> https://github.com/apache/camel/blob/master/components/camel-spark-rest/src/main/java/org/apache/camel/component/sparkrest/DefaultSparkBinding.java#L109
> Is this intended behaviour? If so, how would I disable it? Thanks



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)