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 2017/05/09 20:03:37 UTC

[08/35] httpcomponents-core git commit: HTTPCORE-259: inaccurate exception message at ResponseContent

HTTPCORE-259: inaccurate exception message at ResponseContent

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.1.x@1134572 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/5fff28bd
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/5fff28bd
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/5fff28bd

Branch: refs/heads/4.1.x
Commit: 5fff28bd7e54c247fe52fe6dee76429e1d895d02
Parents: ee0f377
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Sat Jun 11 11:21:59 2011 +0000
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sat Jun 11 11:21:59 2011 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/http/protocol/ResponseContent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/5fff28bd/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java b/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
index 26b70ba..2e4beca 100644
--- a/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
+++ b/httpcore/src/main/java/org/apache/http/protocol/ResponseContent.java
@@ -57,7 +57,7 @@ public class ResponseContent implements HttpResponseInterceptor {
     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");