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/11 18:17:41 UTC
[06/42] httpcomponents-core git commit: Less verbose.
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/0d054ccb
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/0d054ccb
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/0d054ccb
Branch: refs/heads/4.4.x
Commit: 0d054ccb2ef9cbdb606741dfa031465ca33d9d39
Parents: cea6223
Author: Gary D. Gregory <gg...@apache.org>
Authored: Mon Apr 24 21:56:07 2017 +0000
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu May 11 20:16:43 2017 +0200
----------------------------------------------------------------------
.../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/0d054ccb/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());