You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/06/11 13:21:59 UTC

svn commit: r1134572 - in /httpcomponents/httpcore/branches/4.1.x: ./ httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java

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");