Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD55E6A1D for ; Sat, 11 Jun 2011 11:22:22 +0000 (UTC) Received: (qmail 65540 invoked by uid 500); 11 Jun 2011 11:22:22 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 65513 invoked by uid 500); 11 Jun 2011 11:22:22 -0000 Mailing-List: contact commits-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 commits@hc.apache.org Received: (qmail 65506 invoked by uid 99); 11 Jun 2011 11:22:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 11:22:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 11:22:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E01EF2388A33; Sat, 11 Jun 2011 11:21:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1134572 - in /httpcomponents/httpcore/branches/4.1.x: ./ httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java Date: Sat, 11 Jun 2011 11:21:59 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110611112159.E01EF2388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: olegk Date: Sat Jun 11 11:21:59 2011 New Revision: 1134572 URL: http://svn.apache.org/viewvc?rev=1134572&view=rev Log: HTTPCORE-259: inaccurate exception message at ResponseContent Modified: httpcomponents/httpcore/branches/4.1.x/ (props changed) httpcomponents/httpcore/branches/4.1.x/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java Propchange: httpcomponents/httpcore/branches/4.1.x/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Sat Jun 11 11:21:59 2011 @@ -1,2 +1,2 @@ /httpcomponents/httpcore/branches/ibm_compat_branch:755687-758898 -/httpcomponents/httpcore/trunk:1102241-1102657,1133031-1134569 +/httpcomponents/httpcore/trunk:1102241-1102657,1133031-1134569,1134571 Modified: httpcomponents/httpcore/branches/4.1.x/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.1.x/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java?rev=1134572&r1=1134571&r2=1134572&view=diff ============================================================================== --- httpcomponents/httpcore/branches/4.1.x/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java (original) +++ httpcomponents/httpcore/branches/4.1.x/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java Sat Jun 11 11:21:59 2011 @@ -57,7 +57,7 @@ public class ResponseContent implements public void process(final HttpResponse response, final HttpContext context) throws HttpException, IOException { if (response == null) { - throw new IllegalArgumentException("HTTP request may not be null"); + throw new IllegalArgumentException("HTTP response may not be null"); } if (response.containsHeader(HTTP.TRANSFER_ENCODING)) { throw new ProtocolException("Transfer-encoding header already present");