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 37B7262AF for ; Tue, 12 Jul 2011 15:32:25 +0000 (UTC) Received: (qmail 88632 invoked by uid 500); 12 Jul 2011 15:32:25 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 88560 invoked by uid 500); 12 Jul 2011 15:32:24 -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 88538 invoked by uid 99); 12 Jul 2011 15:32:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 15:32:23 +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; Tue, 12 Jul 2011 15:32:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D6D284C227 for ; Tue, 12 Jul 2011 15:31:59 +0000 (UTC) Date: Tue, 12 Jul 2011 15:31:59 +0000 (UTC) From: "William R. Speirs (JIRA)" To: dev@hc.apache.org Message-ID: <1751152463.6346.1310484719876.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HTTPCORE-264) Allow Overwriting of Content-Length & Transfer-Encoding Headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Allow Overwriting of Content-Length & Transfer-Encoding Headers --------------------------------------------------------------- Key: HTTPCORE-264 URL: https://issues.apache.org/jira/browse/HTTPCORE-264 Project: HttpComponents HttpCore Issue Type: Improvement Components: HttpCore Affects Versions: 4.1.2, 4.2-alpha1, 4.2, Future Environment: n/a Reporter: William R. Speirs Priority: Trivial Fix For: 4.1.2, 4.2, Future Attachments: ResponseContent.diff Currently the ResponseContent interceptor will throw an exception if the Content-Length or Transfer-Encoding headers are found in the response. I am proposing a patch which adds 2 new constructors to ResponseContent. These new constructors allow ResponseContent to overwrite the Content-Length and/or Transfer-Encoding headers if they're already found instead of throwing an exception. The biggest use I see for this is in a reverse proxy. The response from the proxied server will already have proper Content-Length and Transfer-Encoding headers. However, this interceptor throws an exception in this case. The simple answer is to remove this interceptor; however, I would like to clean-up any response where these headers might be missing. The default constructor is to thrown an exception if these headers are found. -- This message is automatically generated by JIRA. 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