hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1134571 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
Date Sat, 11 Jun 2011 11:20:05 GMT
Author: olegk
Date: Sat Jun 11 11:20:05 2011
New Revision: 1134571

URL: http://svn.apache.org/viewvc?rev=1134571&view=rev
Log:
HTTPCORE-259: inaccurate exception message at ResponseContent

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java?rev=1134571&r1=1134570&r2=1134571&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
Sat Jun 11 11:20:05 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");



Mime
View raw message