hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [30/50] httpcomponents-core git commit: Less verbose.
Date Tue, 09 May 2017 20:01:56 GMT
Less verbose.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1792552
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/a7575851
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/a7575851
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/a7575851

Branch: refs/heads/4.4.x
Commit: a7575851eae4de1f4778deecad548da855597be0
Parents: 03a8746
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Mon Apr 24 21:56:07 2017 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Mon Apr 24 21:56:07 2017 +0000

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


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a7575851/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java b/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
index 53f4051..2c5462a 100644
--- a/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
+++ b/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
@@ -85,9 +85,8 @@ public class RequestTargetHost implements HttpRequestInterceptor {
                 if (targethost == null) {
                     if (ver.lessEquals(HttpVersion.HTTP_1_0)) {
                         return;
-                    } else {
-                        throw new ProtocolException("Target host missing");
                     }
+                    throw new ProtocolException("Target host missing");
                 }
             }
             request.addHeader(HTTP.TARGET_HOST, targethost.toHostString());


Mime
View raw message