Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 35149 invoked from network); 4 Aug 2010 18:23:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 18:23:40 -0000 Received: (qmail 44651 invoked by uid 500); 4 Aug 2010 18:23:39 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 44558 invoked by uid 500); 4 Aug 2010 18:23:39 -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 44546 invoked by uid 99); 4 Aug 2010 18:23:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 18:23:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 18:23:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o74INHKe024677 for ; Wed, 4 Aug 2010 18:23:18 GMT Message-ID: <29961722.162521280946197822.JavaMail.jira@thor> Date: Wed, 4 Aug 2010 14:23:17 -0400 (EDT) From: "Vianney Carel (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCLIENT-974) RequestWrapper does not use the headers of the request it wraps. In-Reply-To: <6541086.162481280946079816.JavaMail.jira@thor> 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/HTTPCLIENT-974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vianney Carel updated HTTPCLIENT-974: ------------------------------------- Priority: Trivial (was: Major) > RequestWrapper does not use the headers of the request it wraps. > ---------------------------------------------------------------- > > Key: HTTPCLIENT-974 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-974 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.0.1 > Reporter: Vianney Carel > Priority: Trivial > Original Estimate: 1h > Remaining Estimate: 1h > > The RequestWrapper does not use the headers of the request it wraps. Therefore the wrapper appears as having no header, while the wrapped request may have some. > To work-around that behavior, I have to call resetHeaders() on the wrapper just after having created it. > This method does the following: > public void resetHeaders() > { > headergroup.clear(); > setHeaders(original.getAllHeaders()); > } > I suggest calling setHeaders directly in the constructor. Or at list highlight that we should call resetHeaders() in the Javadoc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org