Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C19F918983 for ; Fri, 15 May 2015 02:07:00 +0000 (UTC) Received: (qmail 28313 invoked by uid 500); 15 May 2015 02:07:00 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 28283 invoked by uid 500); 15 May 2015 02:07:00 -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 28274 invoked by uid 99); 15 May 2015 02:07:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 02:07:00 +0000 Date: Fri, 15 May 2015 02:07:00 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (CAMEL-8774) DefaultJettyHttpBinding preserves CONTEXT_ENCODING from the request even HTTP response doesn't contain the header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang reopened CAMEL-8774: --------------------------------- > DefaultJettyHttpBinding preserves CONTEXT_ENCODING from the request even HTTP response doesn't contain the header > ----------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-8774 > URL: https://issues.apache.org/jira/browse/CAMEL-8774 > Project: Camel > Issue Type: Bug > Components: camel-jetty > Affects Versions: 2.15.2 > Reporter: Mateusz Nowakowski > Assignee: Willem Jiang > Fix For: 2.14.3, 2.16.0, 2.15.3 > > > When Http Request is Gzip encoded (CONTENT_ENCODING is set) but the HTTP response is not ( httpExchange.getResponseHeaders().get(HttpHeaders.CONTENT_ENCODING) == null) then Exchange.CONTENT_ENCODING is present in the Camel out message. > This is because DefaultJettyHttpBinding:125 preserves all in headers. > I believe that HTTP protocol headers (except custom ones) from the in shouldn't be copied to the Camel out message. -- This message was sent by Atlassian JIRA (v6.3.4#6332)