hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1792549 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
Date Mon, 24 Apr 2017 21:38:58 GMT
Author: ggregory
Date: Mon Apr 24 21:38:58 2017
New Revision: 1792549

URL: http://svn.apache.org/viewvc?rev=1792549&view=rev
Log:
Less verbose.

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java?rev=1792549&r1=1792548&r2=1792549&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/protocol/RequestTargetHost.java
Mon Apr 24 21:38:58 2017
@@ -74,10 +74,9 @@ public class RequestTargetHost implement
                     return;
                 }
                 throw new ProtocolException("Target host is unknown");
-            } else {
-                if (authority.getUserInfo() != null) {
-                    authority = new URIAuthority(authority.getHostName(), authority.getPort());
-                }
+            }
+            if (authority.getUserInfo() != null) {
+                authority = new URIAuthority(authority.getHostName(), authority.getPort());
             }
             request.addHeader(HttpHeaders.HOST, authority);
         }



Mime
View raw message