You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/04/24 21:56:07 UTC
svn commit: r1792552 -
/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
Author: ggregory
Date: Mon Apr 24 21:56:07 2017
New Revision: 1792552
URL: http://svn.apache.org/viewvc?rev=1792552&view=rev
Log:
Less verbose.
Modified:
httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
Modified: httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java?rev=1792552&r1=1792551&r2=1792552&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java (original)
+++ httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java Mon Apr 24 21:56:07 2017
@@ -85,9 +85,8 @@ public class RequestTargetHost implement
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());