hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1792552 - /httpcomponents/httpcore/branches/4.4.x/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
Date Mon, 24 Apr 2017 21:56:07 GMT
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());



Mime
View raw message