hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [14/42] httpcomponents-core git commit: Camel-case lvar name.
Date Thu, 11 May 2017 18:17:49 GMT
Camel-case lvar name.

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

Branch: refs/heads/4.4.x
Commit: 5b18da2d59f979e2ec7b93d926ee10c13f84981c
Parents: 0d054cc
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Mon Apr 24 21:56:33 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Thu May 11 20:16:43 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/http/protocol/RequestTargetHost.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/5b18da2d/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 2c5462a..54e7473 100644
--- a/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
+++ b/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
@@ -70,8 +70,8 @@ public class RequestTargetHost implements HttpRequestInterceptor {
         }
 
         if (!request.containsHeader(HTTP.TARGET_HOST)) {
-            HttpHost targethost = coreContext.getTargetHost();
-            if (targethost == null) {
+            HttpHost targetHost = coreContext.getTargetHost();
+            if (targetHost == null) {
                 final HttpConnection conn = coreContext.getConnection();
                 if (conn instanceof HttpInetConnection) {
                     // Populate the context with a default HTTP host based on the
@@ -79,17 +79,17 @@ public class RequestTargetHost implements HttpRequestInterceptor {
                     final InetAddress address = ((HttpInetConnection) conn).getRemoteAddress();
                     final int port = ((HttpInetConnection) conn).getRemotePort();
                     if (address != null) {
-                        targethost = new HttpHost(address.getHostName(), port);
+                        targetHost = new HttpHost(address.getHostName(), port);
                     }
                 }
-                if (targethost == null) {
+                if (targetHost == null) {
                     if (ver.lessEquals(HttpVersion.HTTP_1_0)) {
                         return;
                     }
                     throw new ProtocolException("Target host missing");
                 }
             }
-            request.addHeader(HTTP.TARGET_HOST, targethost.toHostString());
+            request.addHeader(HTTP.TARGET_HOST, targetHost.toHostString());
         }
     }
 


Mime
View raw message