Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A06B195F0 for ; Fri, 10 Feb 2012 13:55:21 +0000 (UTC) Received: (qmail 4547 invoked by uid 500); 10 Feb 2012 13:55:21 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 4456 invoked by uid 500); 10 Feb 2012 13:55:20 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 4448 invoked by uid 99); 10 Feb 2012 13:55:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 13:55:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 13:55:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 87DCC1AE53A for ; Fri, 10 Feb 2012 13:54:59 +0000 (UTC) Date: Fri, 10 Feb 2012 13:54:59 +0000 (UTC) From: "Ivan Bondarenko (Created) (JIRA)" To: dev@hc.apache.org Message-ID: <878243984.24228.1328882099557.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HTTPCLIENT-1162) Header adding in org.apache.http.client.protocol.RequestAcceptEncoding should be conditional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Header adding in org.apache.http.client.protocol.RequestAcceptEncoding should be conditional -------------------------------------------------------------------------------------------- Key: HTTPCLIENT-1162 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1162 Project: HttpComponents HttpClient Issue Type: Improvement Reporter: Ivan Bondarenko org.apache.http.client.protocol.RequestAcceptEncoding adds a header in any case. Any chance to do it conditional (like in RequestClientConnControl)? The code would be something like if (!request.containsHeader("Accept-Encoding")) { request.addHeader("Accept-Encoding", "gzip,deflate"); } In our app this header may be added before request intercepting, so would be great if this fact is checked. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org