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:20:05 UTC
svn commit: r1134571 -
/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
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");