Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 040BF200C39 for ; Thu, 16 Mar 2017 17:19:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0283A160B7A; Thu, 16 Mar 2017 16:19:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4D013160B78 for ; Thu, 16 Mar 2017 17:19:44 +0100 (CET) Received: (qmail 16918 invoked by uid 500); 16 Mar 2017 16:19:43 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 16909 invoked by uid 99); 16 Mar 2017 16:19:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2017 16:19:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 24B8EC0C6D for ; Thu, 16 Mar 2017 16:19:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jRr-jy28zIUy for ; Thu, 16 Mar 2017 16:19:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3CAD15F238 for ; Thu, 16 Mar 2017 16:19:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C1D20E008E for ; Thu, 16 Mar 2017 16:19:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8672A24162 for ; Thu, 16 Mar 2017 16:19:41 +0000 (UTC) Date: Thu, 16 Mar 2017 16:19:41 +0000 (UTC) From: "Adam Dougal (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-11028) camel-spark-rest - Adds duplicate content-type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 16 Mar 2017 16:19:45 -0000 Adam Dougal created CAMEL-11028: ----------------------------------- Summary: 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 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)